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:
- javascript throw new error
- react native input
- datatables clear table
- Rendered more hooks than during the previous rende
- device height react native
- mongo show users
- how to export module in node js
- useeffect react
- overlapping times javascripts html django
- javascript current date
- nodejs mysql error handling with user example
- javascript celcius to farenheit
- difference between key and code in javascript
- js initialize 2d array
- javascript console.error
- javascript disable scrolling
- pdfjs get all the text present
- if string javascript
- how to reload webview in react native
- js remove space from string
- javascript detect URL hash change
- get hours javascript
- javascript array column
- chart.js