const nodemailer = require(\'nodemailer\');
const SMTPServer = require(\"smtp-server\").SMTPServer;
const server = new SMTPServer({
onAuth(auth, session, callb
-
For who came with this same issue but using the Nodemailer's transporter
way, I solved this issue adding the name
of the server into the transporter object.
const transportObj = {
name: credentials.host, // in my case, the host and the name are the same
host: credentials.host,
port: credentials.port,
secure: true,
auth: {
user: credentials.user,
pass: credentials.pass
},
}
const transporter = nodemailer.createTransport(transportObj)
transporter.sendMail(...)
This solution was related here
- 热议问题