TA的每日心情 | 怒 2016-8-3 14:59 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
1.mail direct pro 配置好了。
2.站点管理下的站点配置,做好了,并测试邮件成功。
3.host文件释放了127.0.0.1。
4.不管手动还是自动,都发不了邮件。
手动邮件提示: 邮件发送指定失败。代码如下:
Messages:
Failed to mail the specified entities;
Failed to mail the specified entities;
Failed to send mail to 964397595@qq.com;
Failed to send the message via mail server 'WangHuan-PC.com';
Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: WangHuan-PC.com, port: 25;
Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: WangHuan-PC.com, port: 25;
Error Code: 1049
查看log里的信息有:
Messages:
Failed to mail the specified entities;Failed to mail the specified entities;Failed to send mail to 964397595@qq.com;Failed to send the message via mail server '127.0.0.1';Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25;Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25;Stack Trace:
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25
在没有释放127.0.0.1时,log信息有:
Defect #2 was NOT sent to user '测试员' with email ' <tduser@127.0.0.1>' due to exception
com.mercury.optane.core.CTdExceptionMessages:
Failed to send mail to tduser@127.0.0.1;Failed to send the message via mail server '127.0.0.1';Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25;Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25;Stack Trace:
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at com.mercury.optane.core.mail.CMailService.sendMail(CMailService.java:375)
wrapped in com.mercury.optane.core.CTdException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 127.0.0.1, port: 25
at com.mercury.optane.core.mail.CMailService.sendMail(CMailService.java:383)
at com.mercury.optane.core.mail.CMailService.sendMail(CMailService.java:347)
at com.mercury.td.tdserver.api.logics.CMailLogic.sendMessage(CMailLogic.java:1280)
wrapped in com.mercury.optane.core.CTdException: Failed to send the message via mail server '127.0.0.1'
at com.mercury.td.tdserver.api.logics.CMailLogic.sendMessage(CMailLogic.java:1282)
at com.mercury.td.tdserver.api.logics.CMailLogic.sendMail(CMailLogic.java:477)
wrapped in com.mercury.optane.core.CTdException: Failed to send mail to tduser@127.0.0.1
|
|