提问人:Kamlesh 提问时间:3/13/2023 最后编辑:Kamlesh 更新时间:3/15/2023 访问量:162
发送电子邮件时 Javax 邮件 SMTPSendFailedException EOF
Javax mail SMTPSendFailedException EOF while sending email
问:
我正在尝试使用javax邮件库发送HTML邮件。它会在等待很长时间后抛出 SMTPFailedException: [EOF]。
注意:发送包含附件的邮件时会发生此错误。
代码异常
SMTPFailedException: [EOF] : com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2358)
附加了 javax 邮件的调试日志。在此日志之后,它会等待 10 分钟以引发 SMTPSendFailedException EOF 异常。
Content-Type: multipart/related;
boundary="----=_Part_0_652648141.1678461860465"
------=_Part_0_652648141.1678461860465
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head><style>table {border-collapse: collapse;width: 100%;} th, td {t=
ext-align: left;padding: 8px;}tr:nth-child(even) {background-color: #f2f2f2=
;}</style></head><body style=3D"padding-top:#030303; padding-left:20px; fon=
t:Verdana, Geneva, sans-serif; font-size:17px;"><div id=3D"main" style=3D"p=
adding-left:50px;padding-top:50px;"><img src=3D"cid:image" ><br><div style=
=3D"border: 1px solid black;height:80px;color:#ffffff;background-color:#2e5=
cb8"><b style=3D"font-size:20px"> 0 finding(s) observed. Runs completed on =
all systems. </b><br><br> Find below a summary of the checks executed, the=
findings detected and their impact on compliance of the enterprise. </div>=
<br><b><h3>Compliance Summary: </h3></b><br><b>Policy name: </b>admin-OSP_C=
M-policy3<br><br> On Demand run by started on 2023-03-10 2=
0:54:13 and lasted for 7 seconds..<br><br><table style=3D"width:100%;border=
: 1px solid black"><tr><th style=3D"border: 1px solid black"> System Name =
</th><th style=3D"border: 1px solid black"> Status </th></tr><tr><td style=
=3D"border: 1px solid black">IN-MUM-ACM1</td><td style=3D"border: 1px solid=
black">Run completed without any errors</td></tr></table><br><b><h3>Findin=
gs Summary (Only Failed Controls) : </h3></b><b>Findings</b><br><br> No fai=
led controls found.<br><br>For a detailed view of all the findings and obse=
rvations login to Assertion Studio (https://localhost/login.=
html)<br><br><br><div id=3D"footer" style=3D"padding-left:50px; border-bott=
om-style: solid; border-width:1px;"></div><table width=3D"580" border=3D"0"=
><tr><td width=3D"354">2020 © Test</td></tr></table></div></div></body></html>
------=_Part_0_652648141.1678461860465--```
答: 暂无答案
评论