基于 Ubuntu/Linux 或 Node.js 的发送电子邮件的方法
我有一个内部网络 smtp 服务器,我需要通过它来发送电子邮件。我已经让它与 Nodemailer 一起使用,但在问候后似乎失败了,并出现“错误”下面留言。它响应 250,所以我不确定为什么它不发送,但我想知道是否有人知道我可以使用一个基于 Linux/Ubuntu 的库通过 CLI 完成此任务。
Server responded with 250-hostname Hello [ip]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
I have an internal network smtp server that I need to go through to send emails. I've gotten it to work with Nodemailer but it appears to fail after the greeting, with the "error" message below. It's responding with 250, so I'm not sure why it's not sending, but I was wondering if anyone knows of a Linux/Ubuntu based library I can use to accomplish this task via the CLI.
Server responded with 250-hostname Hello [ip]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯,这不是一个错误。
250
是状态代码,表示正常。您列出的是服务器对您的EHLO
命令的响应。以250
开头的每一行都会列出您的服务器支持的扩展 SMTP 功能。下一步?如果需要授权,请发送
AUTH
命令。如果没有,请使用MAIL
、FROM
和DATA
启动邮件事务。我认为在继续之前您应该花一些时间阅读 SMTP 的基础知识。那么这对你来说会更有意义。
Um, that's not an error.
250
is a status code that means ok. What you have listed is the server's response to yourEHLO
command. Each line that start with250
lists an extended SMTP feature that your server supports.Next step? If authorization is required, send an
AUTH
command. If not, start a mail transaction usingMAIL
,FROM
, andDATA
.I think before proceeding you should take some time to read up on the basics of SMTP. Then this would make more sense to you.
我无法回答这个问题,但请确保停止进入 #node.js< /a> 并提问!请务必报告您的发现。
IRC 上的 JimBastard(又名 Marak)是替代方案 node_mailer 的创建者,因此他是发消息的人,尽管其他人也可能可以帮助您。
I can't answer this, but make sure to stop into #node.js and ask questions! Make sure to report back with your findings.
JimBastard on IRC (aka Marak), is the creator of node_mailer, an alternative, so he'd be the guy to message, though other people might be able to help you too.