【发布时间】:2018-10-28 20:12:30
【问题描述】:
如何从运行 SMTP 服务器/中继的 Java 应用程序的 VM (linux) 中使用?
为了连接 SMTP,我想使用 O365 帐户,因此配置如下:
- 主机:smtp.office365.com
- 端口:587
- TLS:真
- uid: UID-O365
- 密码:PWD-O365
作为回应,我得到: 发送测试邮件时出错:
MailException: com.sun.mail.smtp.SMTPSendFailedException:
501 5.1.7 Invalid address [AM4P190MB0211.EURP190.PROD.OUTLOOK.COM]
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address
[AM4P190MB0211.EURP190.PROD.OUTLOOK.COM]
备注:想要连接的应用程序运行在java上,可能不重要
【问题讨论】:
标签: azure smtp jakarta-mail azure-virtual-machine