Home
> Uncategorized > #Transactional Email in #Javascript
#Transactional Email in #Javascript
Transactional email differs from promotional / marketing email, in the sense that it is typically not sent it batches, but is sent in response to a user signing up to your website, or an event such as a low credit warning, or notification.
Normally, people think of email as a server side exercise, but you can also use Javascript to send email too – with the help of SMTPJS.com
Here’s a sample script using Elastic Email’s SMTP with SMTPJS –
Email.send(
“me@gmail.com”,
“you@gmail.com”,
“This is a subject”,
“this is the body”,
“smtp25.elasticemail.com”,
“username@gmail.com”,
“989accc0-cba1-4fbf-abf2-7bad4fc80526”,
function(data){ alert(data) });
It almost needs no explanation, it’s so simple!
Need an SMTP server:
If you don’t have access to an SMTP server, you can create one by opening an account at Elastic Email.com, then pressing Settings > SMTP/API, and using the SMTP configuration shown. Get SMTP Credentials
If you don’t have access to an SMTP server, you can create one by opening an account at Elastic Email.com, then pressing Settings > SMTP/API, and using the SMTP configuration shown. Get SMTP Credentials
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback