SmtpJS.com

Send email from Javascript

Getting started

  • 1. Include the script:
    <script src="http://smtpjs.com/smtp.js">
    </script>
  • 2. Send an email using:
    Email.send("from@you.com",
    "to@them.com",
    "This is a subject",
    "this is the body",
    "smtp.yourisp.com",
    "username",
    "password");

Security

Whoa!, wait a minute. I don't want my SMTP credentials visible to the world!

We've thought of that, so instead you can encrypt your SMTP credentials, and lock it to a single domain, and pass a secure token instead of the credentials instead, for example:

Email.send("from@you.com",
"to@them.com",
"This is a subject",
"this is the body",
{token: "63cb3a19-2684-44fa-b76f-debf422d8b00"});

Anti Spam

We don't like spam. Nobody does.

We have a zero tolerance for spam. If you get one spam report, we close your account. Sorry about that, but this is a free service, and we're not taking any heat for you.

Report Spam

It's free!

This is a free script, no usage restrictions. You can include it license free, in any project, either commercial or non commercial.