homepage Welcome to WebmasterWorld Guest from 107.21.187.131
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
send mail using javascript
manjumurthy




msg:1493716
 5:34 am on Nov 30, 2001 (gmt 0)

Hi,
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
thanks
manju

 

tedster




msg:1493717
 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