Node.js

how to send an email to nodejs from Gmail

https://youtu.be/tGdGB5Pul2M var nodemailer = require(‘nodemailer’); var send = require(‘gmail-send’); var mailserverifo = nodemailer.createTransport({ service: ‘gmail’, host : “smtp.gmail.com”, port : “465”, ssl : true, auth: { user: ’[email protected]’, pass: ‘[email protected]’ } }); var Mailinfo = { from: ’[email protected]’, to: ’[email protected]’, subject: ‘Testing email from node js server’, text: ‘That was easy!’ }; mailserverifo.sendMail(Mailinfo, function(error, info){…

Read More