Buonasera, sto provando ad inviare PEC con javax.mail 1.6.2 e java 8, mettendo tutte le properties da voi suggerite ed avviando il progetto in Debug con setDebug = true, invia,
mentre se avvio il progetto normalemente si resetta lai connessione:
*2020-04-17 14:30:42 INFO MailInvio:355 - smtps.pec.aruba.it
DEBUG: setDebug: JavaMail version 1.4.4
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host “smtps.pec.aruba.it”, port 465, isSSL true
2020-04-17 14:30:43 ERROR MailInvio:493 - javax.mail.MessagingException: Could not connect to SMTP host: smtps.pec.aruba.it, port: 465;
nested exception is:
java.net.SocketException: Connection reset
2020-04-17 14:30:43 ERROR MailInvio:443 - java.lang.IllegalStateException: Not connected
. C’è qualche altro settaggio da fare?
Grazie.