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

Q1139 How can I send an email?

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

Q1139 How can I send an email?

JavaScript cannot initiate an email. Only the user, by clicking a link or a form, can send an email.

An opposing argument was put forward by Clif Hopwood:

How about:
function mailIt() {
    Mail="mailto:me@nowhere.com?subject=Help";
    window.location.href=Mail;
}
which opens the clients mail composer, unless Outlook grabs it, but that isn't a limitation caused by JavaScript. Additionally I have used JavaScript to send a form using "action=mailto".

However, the user still has to hit the send button - thank goodness!

For email examples, take a look at the email articles on irt.org.

Feedback on 'Q1139 How can I send an email?'


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.