Created
February 15, 2019 23:19
-
-
Save ahrherrera/4e03906427a895560d6302e14a1429f5 to your computer and use it in GitHub Desktop.
Email send
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mailOptions = { | |
from: '[email protected]', // 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 <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