hi all,
i developed a small
java application for sending mails to list of email id's.
if configured the properties by giving property
1.mail.host=(mailserver address)
2.mail.debug=true
in stanalone application,it work fine and the mails were send to the list of mails id by giving the message in debug mode.
Connected to host: 10.45.26.62, port: 25;
but, when i integrated the same application in web container (
tomcat and sun application server) its giving the following error.
javax.mail.MessagingException: Could not connect to SMTP host: 10.45.26.62, port: 25;
nested exception is:
java.net.SocketException: Software caused connection abort: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1213)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)