From: Jeffrey F. <jef...@gm...> - 2006-07-06 16:23:00
|
so you can send email using the stock Ant mail task? if so, what are the settings you use there? I'm surprised that one could send and not the other... what version of CC are you using? and I'm surprised to see usessl="true" with mailport="25". I thought port 25 was usually used w/out SSL... Jtf On 7/6/06, Michael Clark <mcl...@co...> wrote: > > Hi, > > I'm trying to use the email publisher and not having much luck. I can > successfully telnet to the smtp server. I have also created an ant task that > works fine also Any ideas would be great. Thanks > > Here is what I'm doing > > <publishers> > <email mailhost="192.168.2.20" > mailport="25" > returnaddress="fo...@fo..." > username="fo...@fo..." > password="password" > subjectprefix="[Automation]: " > buildresultsurl="http://localhost:8080/buildresults/BLD_INT" > usessl="true"> > <always address="fo...@co..."/> > <failure address=" fo...@co... "/> > </email> > > Here is the result I get > > [cc]Jul-06 10:18:01 EmailPublisher- List of emails: fo...@fo... > [cc]Jul-06 10:18:01 EmailPublisher- Sending email to: fo...@fo... > [cc]Jul-06 10:18:01 EmailPublisher- 25 > > DEBUG: getProvider() returning > javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun > Microsystems, Inc] > > DEBUG SMTP: useEhlo true, useAuth true > > DEBUG: SMTPTransport trying to connect to host "192.168.2.20", port 25 > > [cc]Jul-06 10:18:02 ThreadedServer- IGNORED > java.net.SocketTimeoutException: Accept timed out > at java.net.PlainSocketImpl.socketAccept(Native > Method) > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) > at > java.net.ServerSocket.implAccept(ServerSocket.java:450) > at java.net.ServerSocket.accept(ServerSocket.java:421) > at > org.mortbay.util.ThreadedServer.acceptSocket(ThreadedServer.java:432) > at > org.mortbay.util.ThreadedServer$Acceptor.run(ThreadedServer.java:631) > > DEBUG SMTP RCVD: > > DEBUG: SMTPTransport could not connect to host "192.168.2.20", port: 25 > > [cc]Jul-06 10:18:02 Project - exception publishing results with > net.sourceforge.cruisecontrol.publishers.LinkEmailPublisher > for project VPN_INT > > net.sourceforge.cruisecontrol.CruiseControlException: > javax.mail.MessagingException: Could not connect to SMTP host: 192.168.2.20, > port: 25 > > : Could not connect to SMTP host: 192.168.2.20, port: 25 > at net.sourceforge.cruisecontrol.publishers.EmailPublisher.sendMail(EmailPublisher.java:396) > at > net.sourceforge.cruisecontrol.publishers.EmailPublisher.publish(EmailPublisher.java:317) > at > net.sourceforge.cruisecontrol.Project.publish(Project.java:693) > at > net.sourceforge.cruisecontrol.Project.build(Project.java:232) > at > net.sourceforge.cruisecontrol.Project.execute(Project.java:138) > at > net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69) > at java.lang.Thread.run(Thread.java:595) > > -Michael -- http://www.developertesting.com/ |