aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Automail not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Automail not working" Watch "Automail not working" New topic
Author

Automail not working

vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
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

Joined: Apr 14, 2004
Posts: 10336


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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
vijay kumarg
Ranch Hand

Joined: Dec 14, 2006
Posts: 105
One trick is to try connecting via telnet


Paul,
Could you please reply how to do the same

Thanks,
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Automail not working