daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Oct 17th, 2017 432 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var transporter = nodemailer.createTransport(smtpTransport({
  2.           service: 'gmail',
  3.           host : 'smtp.gmail.com',
  4.           auth: {
  5.             user: 'sidharthramanan@gmail.com',
  6.             pass: '*******'
  7.           }
  8.         }));
  9.  
  10.         var mailOptions = {
  11.           from: 'sidharthramanan@gmail.com',
  12.           to: example@hotmail.com,
  13.           subject: 'Email via Nodemailer',
  14.           text: 'You've received an email via Nodemailer!'
  15.         };
  16.  
  17.         transporter.sendMail(mailOptions, function(error, info){
  18.           if (error) {
  19.             console.log(error);
  20.           } else {
  21.             response.send("email sent successfully");
  22.           }
  23.         });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top