Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascrip E-mails

    I am in the process of completeing my javascript e-mail generator. One last part that I need it to include is a from address in the e-mail so that any return e-mails are returned to a certain location. Here is the code I used so far:

    <form>
    <p align="left" style="word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0">button
    &nbsp;&nbsp;&nbsp;<INPUT TYPE="button" VALUE="Generate E-Mail"
    onClick="parent.location='mailto:test@test.com?subject=Test E-mail&from=testhelp@test.com&cc=anothertest@test.com&body=test.%0d%0aTest1 :%0d%0aTest2 :%0d%0aTest3 :%0d%0aTest4 :%0d%0aTest5'">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    </FORM>

    I thought that the from portion would work. It makes the from box on the e-mail but then does not populate the value that it is equal to. Can some one help.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You mean like this thing?
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    New Coder
    Join Date
    Apr 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes other than the fact that it does not populate the from on the e-mail like I need. The from is the only part of the script that I can not get to work.

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh, you can't set the "from" address without a server-side language, which have the capability to set the email headers, which is where the "from" address is stored.

    In short, you can't do that with javascript.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #5
    New Coder
    Join Date
    Apr 2003
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for the help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •