使用NodeMailer和Office365发送电子邮件

发布于 2025-01-24 19:21:19 字数 991 浏览 2 评论 0 原文

我们可以使用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。

谢谢

can we send Emails using Nodemailer and Office365 without Auth?

package.json

"nodemailer": "^6.4.4",
"nodemailer-smtp-transport": "^2.7.4",

If we take a look on the Nodemailer source code (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 as my connector. It guy has connected connector with Firebase IP address.

I have already tried with:

const mailTransport = nodemailer.createTransport(
        smtpTransport({
            host: 'xxxxxxxxxxx.mail.protection.outlook.com',
            port: 587,
            secureConnection: false,
            tls: {
                ciphers:'SSLv3',
                rejectUnauthorized: false
            },
        })
    );

But I am getting an error "530 5.7.57 Client not authenticated to send mail" -> I am using Firebase.

Thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文