Follow us on
You are here: Home > All Posts > N/A > Wipro > technical

Exception in java mail - Please help
Posted by Ankit ( Verified Professional) from Wipro                                              
Posted On 287 Day 5 hour ago | Last Modified 286 Day 6 hour ago | Visit330
City: N/A

I am receiving below excpetion, I am trying to send mail from java program..

I am not able to understand why it is happening...

Anyone have idea , how to solve this......It's urgent ...

 

javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:645)
at javax.mail.Transport.send0(Transport.java:171)
at javax.mail.Transport.send(Transport.java:98)
at TestDevelop.EmailSms.send(EmailSms.java:195)
at TestDevelop.EmailSms.main(EmailSms.java:58)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)SMS was not sent - Exception reading response

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)

Comments
Please refer this site, it might help you http://forums.sun.com/thread.jspa?threadID=5271062
- Sagar 286 Day 6 hour ago




Related Posts View All