Mail.txt

  • Uploaded by: huy nguyen
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Mail.txt as PDF for free.

More details

  • Words: 86
  • Pages: 1
var nodemailer = require('nodemailer'); // create reusable transporter object using the default SMTP transport var transporter = nodemailer.createTransport('smtps://minhhuy22111996%40gmail.com:[email protected] .com'); // setup e-mail data with unicode symbols var mailOptions = { from: '"Minhhuy ??" ', // sender address to: '[email protected]', // list of receivers subject: 'Hello ?', // Subject line text: 'Hello world ', // plaintext body html: ' luan van 123 ' // html body }; // send mail with defined transport object transporter.sendMail(mailOptions, function(error, info){ if(error){ return console.log(error); } console.log('Message sent: ' + info.response); });

More Documents from "huy nguyen"

Mail.txt
December 2019 3
June 2020 5
December 2019 3
Tong Hop
August 2019 53