51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3888|回复: 10
打印 上一主题 下一主题

[求助] QC发邮件功能配置问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-2-20 14:23:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
QC和Mail Direct Pro都按照这样配了http://blog.163.com/kingqueen_lo ... 549201051110056753/,但是任然不能发邮件,请大家帮帮忙,看一下
通过邮件发送指定实例失败
Messages:
Failed to mail the specified entities;
Failed to mail the specified entities;
Failed to send mail to jiangyan@cdzhiyong.com;
Failed to send the message via mail server 'localhost';
Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

Error Code: 1049

Stack Trace:
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: localhost, 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: localhost, 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 'localhost'
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 jiangyan@cdzhiyong.com
at com.mercury.td.tdserver.api.logics.CMailLogic.sendMail(CMailLogic.java:481)
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:436)
        wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:439)
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:328)
        wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:345)
at com.mercury.td.web.server.CTdServlet.redirectMailEntity(CTdServlet.java:1086)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.mercury.optane.core.web.CAbsServlet.executeFunction(CAbsServlet.java:554)
at com.mercury.optane.core.web.CAbsServlet.processRequest(CAbsServlet.java:535)
at com.mercury.td.web.server.CTdServlet.processRequest(CTdServlet.java:319)
at com.mercury.optane.core.web.CAbsServlet.doPost(CAbsServlet.java:418)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2012-2-21 15:55:31 | 只看该作者
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2012-2-22 10:29:33 | 只看该作者
还是不行的,以前配的细节跟你现在的是一样的,我又试了,还是不行
Messages:
Failed to mail the specified entities;
Failed to mail the specified entities;
Failed to send mail to jiangyan@cdzhiyong.com;
Failed to send the message via mail server 'localhost';
Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

Error Code: 1049

Stack Trace:
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: localhost, 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: localhost, 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 'localhost'
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 jiangyan@cdzhiyong.com
at com.mercury.td.tdserver.api.logics.CMailLogic.sendMail(CMailLogic.java:481)
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:436)
        wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:439)
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:328)
        wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:345)
at com.mercury.td.web.server.CTdServlet.redirectMailEntity(CTdServlet.java:1086)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.mercury.optane.core.web.CAbsServlet.executeFunction(CAbsServlet.java:554)
at com.mercury.optane.core.web.CAbsServlet.processRequest(CAbsServlet.java:535)
at com.mercury.td.web.server.CTdServlet.processRequest(CTdServlet.java:319)
at com.mercury.optane.core.web.CAbsServlet.doPost(CAbsServlet.java:418)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2012-2-22 10:31:07 | 只看该作者
手动都不行,自动发送就更不行了
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2012-3-19 17:53:58 | 只看该作者
人家都可以弄好的呀。具体我好像也碰到过
回复 支持 反对

使用道具 举报

  • TA的每日心情
    奋斗
    2018-1-26 09:40
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    6#
    发表于 2012-3-27 13:07:10 | 只看该作者
    回复 3# Ellajiang
    从“Sending failed;
      nested exception is:
            javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
    Sending failed;
      nested exception is:
            javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
    ”来看,应该是服务器与端口的设置错误,请检查一下,Mail direct pro 自动测试是成功的吗?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    7#
    发表于 2012-8-2 15:34:54 | 只看该作者
    解决了吗,没有解决可以联系我
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    8#
    发表于 2012-8-9 17:26:19 | 只看该作者
    回复 7# splatt


        我有问题啊Messages:
    Failed to mail the specified entities;
    Failed to mail the specified entities;
    Failed to send mail to zhangjianping@purang.com;
    Failed to send the message via mail server 'localhost';
    Sending failed;
      nested exception is:
            javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
    Sending failed;
      nested exception is:
            javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

    Error Code: 1049

    Stack Trace:
    javax.mail.SendFailedException: Sending failed;
      nested exception is:
            javax.mail.MessagingException: Could not connect to SMTP host: localhost, 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: localhost, 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 'localhost'
    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 zhangjianping@purang.com
    at com.mercury.td.tdserver.api.logics.CMailLogic.sendMail(CMailLogic.java:481)
    at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:436)
            wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
    at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:439)
    at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:328)
            wrapped in com.mercury.optane.core.CTdException: Failed to mail the specified entities
    at com.mercury.td.tdserver.api.logics.CMailLogic.sendEntity(CMailLogic.java:345)
    at com.mercury.td.web.server.CTdServlet.redirectMailEntity(CTdServlet.java:1086)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.mercury.optane.core.web.CAbsServlet.executeFunction(CAbsServlet.java:554)
    at com.mercury.optane.core.web.CAbsServlet.processRequest(CAbsServlet.java:535)
    at com.mercury.td.web.server.CTdServlet.processRequest(CTdServlet.java:319)
    at com.mercury.optane.core.web.CAbsServlet.doPost(CAbsServlet.java:418)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    9#
    发表于 2012-8-10 05:29:50 | 只看该作者
    Could not connect to SMTP host: localhost, port: 25
    还要怎么说你才能明白?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    10#
    发表于 2012-9-11 16:06:35 | 只看该作者
    Could not connect to SMTP host: localhost, port: 25;
    哪有SMTP地址配本机的ip的?你们公司的邮件服务器在你电脑上啊?
    找你们公司信息中心问下,公司的邮件服务器IP地址多少!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    11#
     楼主| 发表于 2013-4-3 10:24:58 | 只看该作者
    回复 10# Roberts


        不好意思哈,以前那家公司是小公司,测试就我一个人,所以就没有用QC了,QC和邮件服务器都是装在我电脑上的,他们3台服务器不够用
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-16 03:47 , Processed in 0.072974 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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