tags:

views:

8

answers:

0

HI, i am getting the error message when i am trying to send mail through java mail API.

javax.mail.MessagingException: Could not connect to SMTP host: SMTPHost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect

I am using this from my organization's machine and using a microsoft exchange mail server. I am using the demo program provided by sun msgsend.java with the JAVA mail API. Anybody have any idea about the error?

Thanks.