Send form data to an email w/o IE poping up and new msg box - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Send form data to an email w/o IE poping up and new msg box

awokosinawokosin Posts: 2Member
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.

Comments

  • bgibbybgibby Posts: 251Member
    : 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:)
Sign In or Register to comment.