Email Template : Failed to use the email server to send the email, correct your configuration.

0
Hello.   We're using the module EmailTemplate to send a few emails on an app. It worked for a few months and now all of a sudden it stopped working. The error that comes up is the one in the screenshot.   Does anyone have any idea of what could be wrong? We suspect it's something in the server because the module hasn't been updated, but we're out of ideas of what it could be.   Regards, Pedro Pires     ERROR :  com.mendix.systemwideinterfaces.MendixRuntimeException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : mail2.atosit.pt:587 at EmailTemplate.SendEmailMessage (JavaAction : 'Send Email') at EmailTemplate.IVK_SendTestMessage (SubMicroflow : 'SendEmailMessage') Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : mail2.atosit.pt:587 at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : mail2.atosit.pt:587 at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: Sending the email to the following server failed : mail2.atosit.pt:587 at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: Could not convert socket to TLS at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: validity check failed at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85) Caused by: NotAfter: Mon Feb 21 13:08:55 UTC 2022 at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:85)
asked
1 answers
-1

Hi,

This looks like an with relation to TLS. There could be many reasons why this is failing but I would start by updating the email templates module to ensure the latest Java libraries are being used. For example, according to https://jira.atlassian.com/browse/FE-7294 this could be due to an outdated javamail library. 

Have you recently introduced any new app store module which might have introduced conflicting Java libraries?

Are you able to troubleshoot this by using a different email provider such as GMail, MailGun etc.? Are you also getting the same error?

answered