jodd icon indicating copy to clipboard operation
jodd copied to clipboard

how to send email with certificate

Open archer-christ opened this issue 9 years ago • 3 comments

jodd.mail.MailException: Failed to connect; <--- javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
	at jodd.mail.SendMailSession.open(SendMailSession.java:78)

the mail server needs certificate to ssl , how to config certificate with SmtpSslServer I cannot found the doc ?

archer-christ avatar Apr 19 '17 03:04 archer-christ

Heya @archer-christ !

Are you sure you talk to correct HTTPS port? This error may occur if you are talking to an HTTP server, not an HTTPS server; i.e. if you are not talking to right port.

Also, check plaintextOverTLS and startTlsRequired methods of SmtpSslServer.

It would be superb if you can send more info; try private email if some data are sensitive :)

igr avatar Apr 19 '17 10:04 igr

Heya @archer-christ , any update on this?

igr avatar Apr 25 '17 10:04 igr

Closing - not having enough information. Please reopen if you find this issue still relevant. Thanx!

igr avatar Apr 26 '17 07:04 igr