Maneesh Godbole wrote:What error did you get? Can you post the stack trace?
Hi,
This is the error i got.
--Exception handling in msgsendsample.java
javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: Could not connect to SMTP host: 10.40.9.50, port: 25, response: 421
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at Emailmsg.main(Emailmsg.java:43)