JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Send form data to an email w/o IE poping up and new msg box Posted by awokosin on 31 May 2002 at 7:40 AM
I am new to JavaScript and I am creating a form to join a mailing list. The ISP does not support scripting so I need to send the data to the appropriate person in an email. The problem is IE will open up a new email message box when you click submit on the form. I currently have the ACTION set to "mailto". Is there any way to get around this in JavaScript?

Thanks for any input.

Report
Re: Send form data to an email w/o IE poping up and new msg box Posted by bgibby on 6 Jun 2002 at 11:38 PM
: I am new to JavaScript and I am creating a form to join a mailing list. The ISP does not support scripting so I need to send the data to the appropriate person in an email. The problem is IE will open up a new email message box when you click submit on the form. I currently have the ACTION set to "mailto". Is there any way to get around this in JavaScript?
:
: Thanks for any input.
:
:

Unfortunately when you use MAILTO: in the ACTION of a form, it's up to the browser to determine what to do with this action and usually the default action is to open the default email program.

The only way to send an email to someone is to send the form data to a script of some sort that can "talk" to a mail transport agent (MTA) like SendMail or the like.

I THINK there are a few "FREE" MTA's out there but I can't think of any off hand. All you need to do is find one, point your form to it (as per the MTA's instructions) and it'll do the rest for you without IE popping up a New Mail Message window.

Hope this helps!
Bradley q:)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.