0

How can I simple send an email without Outlook or something with JavaScript?

4
  • 3
    Just curious, why would you want to do that? Commented Apr 27, 2010 at 0:49
  • 2
    Shame the nick is "shady" because I can't believe a person would really want to do this nefariously. Also, server-side script is invariably the correct answer. Commented Apr 27, 2010 at 0:55
  • I want to add an auto-invite in my blog, and really dont know how Commented Apr 27, 2010 at 1:17
  • Shay-dee! This is totally shady! It's beyond shady Commented Apr 27, 2010 at 3:45

2 Answers 2

4

You need to write a server-side script to send the email, then call it using AJAX.

Beware of spammers, though.

Sign up to request clarification or add additional context in comments.

Comments

1

Unfortunately, you can't send an email using only JavaScript. Your JavaScript will need to send the email data (subject, replyto, message, etc.) to a server script (PHP, Python, etc.) which can then send your message from the mailserver.

Here's how using PHP: http://email.about.com/od/emailprogrammingtips/qt/How_to_Send_Email_from_a_PHP_Script.htm

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.