Answer the question
In order to leave comments, you need to log in
Why doesn't the from option work in nodemailer?
There is a code:
const smtpTransport = nodemailer.createTransport({
service: "Gmail",
auth: {
user: "***@gmail.com",
pass: "***"
}
});
const mailOptions = {
from: '<[email protected]>',
to: "***@gmail.com",
subject: "Заказ сайта",
text: message,
html: message
}
smtpTransport.sendMail(mailOptions, (err, info) => {
if (err) {
console.log(err)
} else {
console.log(info);
}
});
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