I am using commons-email 1.6.0 to send emails. I am encountering a weird issue where the emails are only sent successfully when the application is launched from netbeans or using java 18.0.2. If I use a different java version I am getting this error. I can’t figure out why it only works using java 18.0.2, does anyone have an idea?
DEBUG SMTP: trying to connect to host "#####", port 465, isSSL false
2024-06-07 10:43:25,975 INFO [exceptions] mailtransfert.MailSender -> (org.apache.commons.mail.EmailException) Sending the email to the following server failed : ######:465 -> sendMailHTML()
2024-06-07 10:43:25,975 INFO [exceptions] org.apache.commons.mail.Email.sendMimeMessage(Email.java:1298)
2024-06-07 10:43:25,975 INFO [exceptions] org.apache.commons.mail.Email.send(Email.java:1282)
2024-06-07 10:43:25,975 INFO [exceptions] mailtransfert.MailSender.sendMailHTML(MailSender.java:110)
2024-06-07 10:43:25,976 INFO [exceptions] calcul.Calcul_Alarmes.sendMailOuverture(Calcul_Alarmes.java:412)
2024-06-07 10:43:25,976 INFO [exceptions] calcul.Calcul_Alarmes.runAction(Calcul_Alarmes.java:367)
2024-06-07 10:43:25,976 INFO [exceptions] framework.prototypes.ICalcul.run(ICalcul.java:142)
2024-06-07 10:43:25,976 INFO [exceptions] java.lang.Thread.run(Unknown Source)