problem with sending mail usin javaX.mail api
Hi to all ,
I am facing a problem with sending mail from owr own server host like
mail.---.in ,with some port --- .What my problem is my is excuting perfectly
when i give server host like gmail.com ,but when i am executing the same program by changing host server like mail.--.in[own server name] and own port like -- , i am getting exception like
Quote:
javax.mail.MessagingException: Could not connect to
SMTP host: mail.---.in, port: --;
nested exception is:
java.io.IOException: Couldn't connect using "javax.net.ssl.SSLSocketFactory" socket factory to host, port: smtp.mail.---.in, 465; Exception: java.lang.reflect.InvocationTargetException
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
I think this problem is because of my server problem or may be i don't any other reason .How to overcome from this problem.Please help me.
Thanks Regarding,
sandeep