Was unable to connect to SMTP server(Connection with outgoing server is failed with error)

0
I’m getting below error while configuring Email Account in Email Connector. Please guide me to resolve this error.  
asked
4 answers
0

What does the logging in your console tell you? Can you share the stack trace?

answered
0

Did you try the automatic config as well?

 

https://docs.mendix.com/appstore/connectors/email-connector/

 

answered
0

Please check below points

 

1. Ensure that the userLib folder contains the required Jars (no conflicting jars). Most likely you are still using jars from previous email modules. Prerequisites can be found at https://docs.mendix.com/appstore/connectors/email-connector/#12-prerequisites.


2. If you provided the gmail account details (email/password) on the connect to email account screen, it should have auto-detected the gmail server settings, which does not appear to be the case.


3. Use the App password for Gmail https://support.google.com/mail/answer/185833? hl=en

 

answered
0

I found the issue that was causing my application’s Email Connector setup not to work, maybe this will work for you.

It was a JAR file issue.

 

The file javax.mail-1.6.0.jar that existed in the userlib was causing problems.

 

Steps followed:

  1. Locate the JAR file in the project userlib
  2. Remove this file (keep a back-up)
  3. Before running the application clear the deployment directory
  4. Run the application 

That said the JAR file causing this for you may not be the javax.mail-1.6.0.jar file as well. In that case I recommend that a comparison of a new app where the Email Connector module has been imported against the existing application.

answered