Saturday, June 07, 2014

javax.mail.MessagingException: Could not convert socket to TLS

This error happened after we migrated Jenkins to a bigger server. The configurations were alike and the mail server configured was internal. Apparently there were no mail changes so why the error I don't have a clue. I ended up authorizing the domain.

2 comments:

Kuldeep Singh said...

Try this props.put("mail.smtp.starttls.enable", "true");

Nestor Urquiza said...

@Kuldeep that option was already in use and it was still failing.

Followers