Send email -- error on transport method

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:, port: 587;   nested exception is: Connection refused: connect     at com.sun.mail.smtp.SMTPTransport.openServer(     at com.sun.mail.smtp.SMTPTransport.protocolConnect(   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.      
1 answers

Hello Rahul,


The error connection refused indicates that the app cannot reach mail server 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.