提问人:Limbo 提问时间:11/9/2023 最后编辑:Limbo 更新时间:11/9/2023 访问量:11
Nodemailer DNS配置似乎不起作用
Nodemailer DNS config doesn't seem to be working
问:
需要帮助在我的nodeJS项目上的nodemailer电子邮件消息配置上设置DNS信息 我尝试设置DSN收件人被忽略,并且从未发送DSN。
示例代码:
const nodemailer = require("nodemailer");
let transporter = nodemailer.createTransport({
host: "localhost",
port: 1025,
secure: false, // upgrade later with STARTTLS
});
transporter.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Test Receipt',
text: 'Did you get a failure?',
envelope: {
dsn: {
id: 'messageId',
return: 'FULL',
notify: 'success',
recipient: '[email protected]',
},
},
}, (err, info) => {
console.log(info.envelope);
console.log(info.messageId);
});
答: 暂无答案
评论