Nodemailer 和 Godaddy,我尝试了所有解决方案都无济于事 [英] Nodemailer and Godaddy, I've tried every solution to no avail
问题描述
我通过 GoDaddy 购买了一个域和一封电子邮件,其中捆绑了 Office 365 Basic.
I bought a domain and an email adrees with GoDaddy with Office 365 Basic bundled with it.
我尝试从我的节点应用程序中仅通过 nodemailer 发送一封电子邮件,但一直没有成功,因为我总是收到 535 Authentication Failed from user@domain.com
.
I'm trying from a few days to send just an email with nodemailer from my node app without ever succeding because I always get a 535 Authentication Failed from user@domain.com
.
我已经在 StackOverflow 上扫描了几天,尝试了每个解决方案,这是我尝试传递给 nodemailer.createTransport 的每个设置:
I've scanned StackOverflow for days trying every solution, this is every setting I've tried to pass to nodemailer.createTransport:
const mailerConfig =
{
//First set of parameters tried
service: 'Godaddy',
host: "smtp.office365.com",
secureConnection: true,
port: 587,
auth:
{
user: "user@domain.com",
pass: "password"
}
//Second set of parameters tried
host: "smtp.office365.com",
secureConnection: false,
port: "587",
auth:
{
user : "user@domain.com",
pass : "password"
},
tls:
{
ciphers:'SSLv3'
}
//Third set of parameters tried
service: "outlook",
auth:
{
user: 'user@domain.com',
pass: 'password'
}
}
这三个设置都不起作用,有人知道吗?谢谢.
None of these three settings worked, someone has any idea? Thanks.
推荐答案
有一个godaddy FAQ 条目 称为在 Thunderbird 上手动配置电子邮件设置";(似乎只能通过 WaybackMachine 访问).
There is a godaddy FAQ entry called "Manually configure email set up on Thunderbird" (which seems to be only accessible via WaybackMachine).
它提到了以下配置:
Incoming (IMAP): imap.secureserver.net 993 SSL Normal password
Outgoing (SMTP): smtpout.secureserver.net 465,587 SSL Normal password
和
Username: Workspace Email address
使用上述内容,尤其是 smtpout.secureserver.net
作为 SMTP 主机对我有用 - 在 2021 年使用 Godaddy 电子邮件进行了测试.
Using the above, especially smtpout.secureserver.net
as SMTP Host works for me – tested with godaddy email in 2021.
这篇关于Nodemailer 和 Godaddy,我尝试了所有解决方案都无济于事的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!