Skip to content

Instantly share code, notes, and snippets.

@ahrherrera
Created February 15, 2019 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahrherrera/4e03906427a895560d6302e14a1429f5 to your computer and use it in GitHub Desktop.
Save ahrherrera/4e03906427a895560d6302e14a1429f5 to your computer and use it in GitHub Desktop.
Email send
const mailOptions = {
from: 'thefreeagent.app@gmail.com', // sender address
to: req.body.email, // list of receivers
subject: 'Thank you for purchasing Premium Account', // Subject line
html: `<p style="Margin-top: 0;Margin-bottom: 20px;text-align: center;"><span style="color:#000">We've charged &nbsp;<strong>$1.99</strong> to activate The Free Agent Premium account.<br /><br />- The Free Agent Team</span></p>` // plain text body
};
transporter.sendMail(mailOptions, function(err, info) {
if (err)
console.log(err);
else
console.log(info);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment