homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

send mail using javascript

10+ Year Member

Msg#: 19 posted 5:34 am on Nov 30, 2001 (gmt 0)

I would like to know the javascript code to send mail. I dont want to use the html tag <mailto> because it opens the default mail application like Outlook express et... Please help me



WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 19 posted 6:12 am on Nov 30, 2001 (gmt 0)

Here's a quote from O'Reilly's JavaScript:

A script cannot submit a form (using the submit() method of the Form object, for instance) to a mailto: or news: URL without the UniversalSendMail privilege or the user's explicit approval through a confirmation dialog. Such a form submission would contain the user's email address, which should not be made public without the user's permission.

In short, you're opening up a bag of complication by sending email with JavaScript. How about a simple CGI sendmail script? It's more univeral than JavaScript, and there are a host of good free scripts around.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved