Hi!
I am student of M S University. I am doing project on Continues Server Monitoring System based on RMI. I want to send mail while RMIException has been encountered. I am facing problem with SMTP Connection.
The Error is :
Exception in
thread "main" javax.mail.MessagingException: Could not connect to SMTP host: mylinux.msubaroda.ac.in, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1152)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:28
8)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:138)
at javax.mail.Transport.send0(Transport.java:150)
at javax.mail.Transport.send(Transport.java:80)
at JDCSend.main(JDCSend.java:33)
Please, let me inform solution for this error.
Thanking You
Bye for now,
Yatin