Issues with Configuring Email Server

Hi,

I am trying to configure mail server in Appian V7.10 so an email can be sent using office365 account.
While sending emails Appian reads the configurations mentioned in custom.properties (configuarations suggested in forum.appian.com/.../Mail_Server_Setup.html). But we are facing problem while sending mails.

Steps followed:

we configured office365 as mail server, configured this as SMTP host.
we did the setting as mentioned in forum. forum.appian.com/.../Mail_Server_Setup.html
conf.mailhandler.mail.smtp.host=SMTP_HOST:PORT
conf.mailhandler.mail.smtp.auth=true
conf.mailhandler.mail.user=myuser@abc.com
conf.mailhandler.mail.transport.protocol=smtp
password is mentioned in password.properties file.
conf.password.SMTP=mypassword

Notification sender is also configured.
conf.mailhandler.ntf_sndr_addr=myuser@abc.com
conf.mailhandler.ntf_sndr_name=myuser

We tested the connectivity from the appian...

OriginalPostID-167251

OriginalPostID-167251

  Discussion posts and replies are publicly visible

Parents
  • We still getting the error:

    11:15:14,762 INFO [stdout] (http-/0.0.0.0:8080-2) 2015-09-21 11:15:14,759 [http-/0.0.0.0:8080-2] ERROR com.appiancorp.ap2.util.Mail - Could not send mail via SMTP_HOST:PORT_NUMBER to myuser@abc.com

    11:15:14,788 INFO [stdout] (http-/0.0.0.0:8080-2) 2015-09-21 11:15:14,785 [http-/0.0.0.0:8080-2] ERROR com.appiancorp.process.runtime.activities.SendEmailActivity - javax.mail.MessagingException: Could not connect to SMTP host: SMTP_HOST, port: PORT_NUMBER;
    11:15:14,789 INFO [stdout] (http-/0.0.0.0:8080-2) nested exception is:
    11:15:14,789 INFO [stdout] (http-/0.0.0.0:8080-2) javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    11:15:14,789 INFO [stdout] (http-/0.0.0.0:8080-2) javax.mail.MessagingException: Could not connect to SMTP host: SMTP_HOST, port: PORT_NUMBER;


    ==========================

    06:59:07,128 ERROR [org.jboss.as.ejb3.invocation] (Appian Work Item - 3 - NotificationsEmail) JBAS014134: EJB Invocation failed on component UnattendedRequestHandlerBean for method public abstract com.appiancorp.process.engine.ContinuationResponse com.appiancorp.ra.workpoller.UnattendedRequestListener.onMessage(com.appiancorp.process.engine.UnattendedRequest): javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render

    Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render

    Caused by: java.net.ConnectException: Connection refused: connect
Reply
  • We still getting the error:

    11:15:14,762 INFO [stdout] (http-/0.0.0.0:8080-2) 2015-09-21 11:15:14,759 [http-/0.0.0.0:8080-2] ERROR com.appiancorp.ap2.util.Mail - Could not send mail via SMTP_HOST:PORT_NUMBER to myuser@abc.com

    11:15:14,788 INFO [stdout] (http-/0.0.0.0:8080-2) 2015-09-21 11:15:14,785 [http-/0.0.0.0:8080-2] ERROR com.appiancorp.process.runtime.activities.SendEmailActivity - javax.mail.MessagingException: Could not connect to SMTP host: SMTP_HOST, port: PORT_NUMBER;
    11:15:14,789 INFO [stdout] (http-/0.0.0.0:8080-2) nested exception is:
    11:15:14,789 INFO [stdout] (http-/0.0.0.0:8080-2) javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    11:15:14,789 INFO [stdout] (http-/0.0.0.0:8080-2) javax.mail.MessagingException: Could not connect to SMTP host: SMTP_HOST, port: PORT_NUMBER;


    ==========================

    06:59:07,128 ERROR [org.jboss.as.ejb3.invocation] (Appian Work Item - 3 - NotificationsEmail) JBAS014134: EJB Invocation failed on component UnattendedRequestHandlerBean for method public abstract com.appiancorp.process.engine.ContinuationResponse com.appiancorp.ra.workpoller.UnattendedRequestListener.onMessage(com.appiancorp.process.engine.UnattendedRequest): javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render

    Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render

    Caused by: java.net.ConnectException: Connection refused: connect
Children
No Data