Send email -- error on transport method

0
Hi All, We are trying to send email using OAuth token(not passowrd) using 7.23.31Modeler and  emailTemplate module. but getting below error from Java action. javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587;   nested exception is:     java.net.ConnectException: Connection refused: connect     at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972)     at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)   If anyone faced the same issue and have solution to it, will be highly appreciated.   Note: We can only use 7.23.31 Mx version.      
asked
1 answers
0

Hello Rahul,

 

The error connection refused indicates that the app cannot reach mail server  smtp.office365.com on port 587.

 

If you are running the app in your machine, please validate if you could reach the server. May be tools like ping or telnet can help.

 

If it is used on the mendix paid cloud, you should check outgoing connections for the app.

 

answered