Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q325 How can I make a script that will automatically reply an e-mail?

irt.org | Knowledge Base | JavaScript | Email | Q325 [ previous next ]

Q325 How can I make a script that will automatically reply an e-mail?

"Automatically" - in Client Side JavaScript - no, not without user intervention. It would a security breach if it were possible as you would be able to capture peoples email addresses without them knowing.

The nearest thing you can get to it is with Netscape:

<FORM ACTION="mailto:someone@somewhere.com" METHOD="POST" ENCTYPE="text/plain" NAME="myForm">
<INPUT TYPE="SUBMIT" NAME="mySubmitButton">
</FORM>

<SCRIPT LANGUAGE="JavaScript"><!--
document.myForm.mySubmitButton.click();
//--></SCRIPT>

However, if the user has their browser setup to warn them when a form is being emailed over the net (which everyone should have done) then it will prompt the user before sending the email.

Feedback on 'Q325 How can I make a script that will automatically reply an e-mail?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.