51Testing软件测试论坛

标题: qc 发邮件提示邮件发送指定失败 [打印本页]

作者: huan_128    时间: 2015-6-2 15:52
标题: qc 发邮件提示邮件发送指定失败
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


作者: 新手一个0    时间: 2015-6-5 15:51
我再td 8.0 中配置不成功,郁闷啊
作者: huan_128    时间: 2015-6-10 09:28
新手一个0 发表于 2015-6-5 15:51
我再td 8.0 中配置不成功,郁闷啊

我的是qc9.0,我的问题解决了,在win7系统上就有这个问题,如果你是在windows server 或者xp,就没有这个问题了,就是域名解析的问题。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2