AnsweredAssumed Answered

Send Email step not working when the test is deployed to CVS

Question asked by Ayanbarman on Jul 22, 2016

When running the test from local it sends email fine but when running it from CVS  i am getting below error

 

Any suggestions ? I have replaced the server details as i cannot share it publicly

 

 

 

| Step: Send Email Step

----------------------------------------------------------------------------

| Message: Sending the email to the following server failed : <SMTP server>

----------------------------------------------------------------------------

| Trapped Exception: Sending the email to the following server failed : <SMTP server>

| Trapped Message: org.apache.commons.mail.EmailException: Sending the email to the following server failed : <SMTP server>

----------------------------------------------------------------------------

STACK TRACE

org.apache.commons.mail.EmailException: Sending the email to the following server failed :<SMTP server>

  at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)

  at org.apache.commons.mail.Email.send(Email.java:1437)

  at com.itko.lisa.glass.SendEmailExecutor.sendEmail(SendEmailExecutor.java:137)

  at com.itko.lisa.glass.SendEmailStep.execute(SendEmailStep.java:123)

  at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)

  at com.itko.lisa.test.TestCase.execute(TestCase.java:1295)

  at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)

  at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)

  at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1136)

  at com.itko.lisa.coordinator.Instance.run(Instance.java:204)

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: <SMTP server>

nested exception is:

  java.net.SocketTimeoutException: connect timed out

  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)

  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)

  at javax.mail.Service.connect(Service.java:295)

  at javax.mail.Service.connect(Service.java:176)

  at javax.mail.Service.connect(Service.java:125)

  at javax.mail.Transport.send0(Transport.java:194)

  at javax.mail.Transport.send(Transport.java:124)

  at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)

  ... 9 more

Caused by: java.net.SocketTimeoutException: connect timed out

  at java.net.PlainSocketImpl.socketConnect(Native Method)

  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

  at java.net.Socket.connect(Socket.java:589)

  at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:319)

  at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237)

  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)

  ... 16 more

============================================================================

updateTrackingMap,updateTrackingMap [Run1User1Cycle],0,0,abort,986A113F31AD11E68AD3DAD020524153,Abort,Fri Jul 22 15:49:31 CDT 2016,A4F9B184504D11E6966C005056BC001F,

Outcomes