EMAIL - SMTP

Hello,

We have configured gmail account for our server, and I have tested this that Email is being sent.
But It is observed that it is working intermittently. Sometimes the node is failing.
When I try to restart the failed node again then it works fine.

Do I need to make the conf.mailhandler.mail.transport.protocol=smtp as smtps
and port from 587 to 465.
In the log file, error shown is below:
Caused by: javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
          java.net.UnknownHostException: smtp.gmail.com
          at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1970)
          at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642)
          at javax.mail.Service.connect(Service.java:295)
          at com.appiancorp.ap2.mail.Mail.sendMessage(Mail.java:328)
          at com.appiancorp.ap2.mail.Mail.sendMessage(Mail.java:220)
          at com.appiancorp.ap2.mail.Emailer.send(Emailer.java:124)
          at com.appiancorp.a...

OriginalPostID-256311

  Discussion posts and replies are publicly visible