Javax mail api with OVH
Is it possible for a user to javax mail with OVH? I can do it with Yahoo mail, but when I try to use it with OVH I get this error:
at org.springframeworkjavax.mail.MessagingException: Exception reading response; Nested Exception: java.net.SocketException: Connection reset
Connection properties:
properties.put("mail.smtp.starttls.enable", "true");
properties.put("mail.smtp.host", host);
properties.put("mail.smtp.user", from);
properties.put("mail.smtp.password", pass);
properties.put("mail.smtp.port", "465");
properties.put("mail.smtp.auth", "true");
properties.put("mail.imap.ssl.enable", "true");
If anyone can see where I'm wrong here ...
Thank.
+3
source to share
1 answer
I tried it successfully using TLD port 587 (as mentioned in @ Mo.Ashfaq section above).
The documentation from the OVH is visible here: http://help.ovh.com/EmailConfiguration
0
source to share