使用NodeMailer和Office365发送电子邮件
我们可以使用NodeMailer和Office365发送电子邮件吗?
package.json
"nodemailer": "^6.4.4",
"nodemailer-smtp-transport": "^2.7.4",
如果我们查看NodeMailer源代码(https://github.com/nodemailer/nodemailer/blob/master/lib/smtp-transport/index.js#L56) it should work
I am using Using {xxxxxxxxx}.mail.protection .outlook.com作为我的连接器。 IT Guy已通过Firebase IP地址连接连接器。
我已经尝试过:
const mailTransport = nodemailer.createTransport(
smtpTransport({
host: 'xxxxxxxxxxx.mail.protection.outlook.com',
port: 587,
secureConnection: false,
tls: {
ciphers:'SSLv3',
rejectUnauthorized: false
},
})
);
但是我遇到了一个错误“ 530 5.7.57客户端未经身份验证以发送邮件” - >我正在使用firebase。
谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论