51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2804|回复: 2
打印 上一主题 下一主题

[原创] qc 发邮件提示邮件发送指定失败

[复制链接]
  • TA的每日心情

    2016-8-3 14:59
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2015-6-2 15:52:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    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

    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    该用户从未签到

    2#
    发表于 2015-6-5 15:51:07 | 只看该作者
    我再td 8.0 中配置不成功,郁闷啊
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2016-8-3 14:59
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    3#
     楼主| 发表于 2015-6-10 09:28:05 | 只看该作者
    新手一个0 发表于 2015-6-5 15:51
    我再td 8.0 中配置不成功,郁闷啊

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

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-26 00:31 , Processed in 0.064204 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表