Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Automail not working

 
vijay kumarg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am testing automail through a standalone java class.
These exceptions i am getting while running

javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: smtpout.secureserver.net, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: connect
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at com.virtusa.automail.SendMailUsingAuthentication.postMail(SendMailUsingAuthentication.java:74)
at com.virtusa.automail.SendMailUsingAuthentication.main(SendMailUsingAuthentication.java:25)

Please help to troubleshoot the problem

Thanks,
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Software caused connection abort

This usually means that some piece of software is blocking your attempt to connect to your smtp server. Typically this can be a virus scanner doing port blocking or a fire wall doing the same. Check both of those things are not interfering. One trick is to try connecting via telnet; if you can do that, you can probably connect via JavaMail. Its also a good idea to speak to your server/network admin people to see if there is something you might not know about that is doing this.
 
vijay kumarg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One trick is to try connecting via telnet


Paul,
Could you please reply how to do the same

Thanks,
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just telnet to the server over the port you have specified JavaMail use. I don't know which OS you run but most will include telnet support. Type "telnet" from a command prompt and see what happens.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic