gpt4 book ai didi

Java SMTP 邮件失败

转载 作者:行者123 更新时间:2023-12-01 17:22:17 27 4
gpt4 key购买 nike

我们有自动回归测试,之后我们希望发送自动生成的邮件。我们使用简单的 java email jar ,但是当我们运行代码时,我们得到以下消息-连接到主机“smtp.office365.com”,端口:587,客户端未经过身份验证,无法在 MAIL FROM 期间发送匿名邮件

谁能告诉我我需要做什么才能发送邮件。

谢谢,尼尔什

最佳答案

正如所述here :

This indicates that you are connecting to the SMTP client submission endpoint (smtp.office365.com), which can't be used for direct send. For direct send, use the MX endpoint for your Office 365 tenant, which ends with "mail.protection.outlook.com." So, please let your admin check the MX record. Moreover, please check if the SMTP port is 25/TLS.

关于Java SMTP 邮件失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61270614/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com