send mail node.js
var nodemailer = require('nodemailer');
var transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: '[email protected]',
pass: 'yourpassword'
}
});
var mailOptions = {
from: '[email protected]',
to: '[email protected]',
subject: 'Sending Email using Node.js',
text: 'That was easy!'
};
transporter.sendMail(mailOptions, function(error, info){
if (error) {
console.log(error);
} else {
console.log('Email sent: ' + info.response);
}
});
Also in JavaScript:
- generate number using math random in javascript
- bodyparser express
- Function in JavaScript that can be called only once
- js split last occurence
- javascript function variable arguments
- roblox.cokm
- javascript codegolf round
- how to setItem and getItem in javascript in localStorage
- what is angularjs used for
- js return undefined on ReferenceError
- js find intersection point
- capitalize algorithm
- on load javascript
- loop array in javascript
- has class in jquery
- jquery to set value in select2 dropdown button
- node code comment process real time
- javascript pagination demo
- array filter
- javascript shuffle array
- javascript short syntax get element
- set iframe height and width by js
- vue-sfc-rollup external dependency
- how to call function from another js file in react native