Results 1 to 2 of 2

Thread: Mail form using javascript

  1. #1
    Join Date
    Oct 2008
    Posts
    60
    Thanks
    2
    Thanked 7 Times in 7 Posts

    Default Mail form using javascript

    Hi (who ever is helping),
    im in a bit of a dalema?. i have a form that i need to send via email (Microsoft Exchange) to someone with all of the inputs of the form. i have looked around, but no luck. maybe im not looking in the right spot, but would love is someone could give me a starter script. I have tried PHP, but cannot connect to the exchange server because the web server is not on a network.
    Thanks for any help that may be provided.

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    The only thing I know that can help is <a href="mailto:...">.

    However, I need to warn you of a Google toolbar/mail bug that may affect other email clients. They've apparently pruned it from the toolbar's forum since I reported it, but it crams the message all on one line. URLs have a mechanism to allow special characters such as newlines to be sent, but Google doesn't fully implement it. To test your own client, save this link in an HTML file and click it:
    Code:
    <a href="mailto:user@example.com?body=foo%0d%0abar">Do as ooga booga do.</a>
    In Gmail, I see "foo bar" with no newline (which I encoded properly in the URL).

    Anyway, if you want to use this (preferably from PHP), see here for all the available options.
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

  3. The Following User Says Thank You to Jesdisciple For This Useful Post:

    fobos (07-18-2009)

Bookmarks

Posting Permissions

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