SSL23_GET_SERVER_HELLO:unknown protocol [connection to msa (587) port]

拈花ヽ惹草 提交于 2019-12-04 13:59:33
AnFi

If you connect to msa (587) or smtp (25) port then DO NOT set secureConnection to true.

Your code with secureConnection set to true tries to start SSL negotiation at once but the other side gives you unencrypted SMTP greeting.

https://nodemailer.com/smtp/

secureConnection - use SSL (default is false, not needed with service). If you're using port 587 then keep secureConnection false, since the connection is started in insecure plain text mode and only later upgraded with STARTTLS

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!