Answer the question
In order to leave comments, you need to log in
How to send email in node js?
Problem sending mail with nodemailer. How to specify that the sending goes from the mailbox on the server?
var transporter = mail.createTransport({
service: 'Gmail',
auth: {
user: '[email protected]',
pass: '***'
}
});
var mailOptions = {
from: 'Autorization <[email protected]>',
to: '[email protected]',
subject: 'Hello',
html: '<b>test</b>'
};
transporter.sendMail(mailOptions, function (err, info) {
res.end('OK');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question