我正在从我的域帐户发送邮件,但它们没有显示在用户(来自nodemailer的选项)发送的框中.但是当从gmail服务邮件发送邮件时,会在用户的已发送框中显示.我在下面的代码中遗漏了什么?
var transport = nodemailer.createTransport({
host: "xxxx.domain.com",
auth: {
user: 'xyx',
pass: '123'
}
});
transport.sendMail(options, function (err, info) {
if (err) {
console.log(err)
}
console.log(info);
});
Run Code Online (Sandbox Code Playgroud)