You are currently reviewing an older revision of this page.
Symptoms
When attempting to reset a password or use the send E-Mail smart service, the logs will show the contents of the email, but the user will never receive the message.
The application server log will show the following error:
Exception:javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{<FILE_PATH>}...Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{<FILE_PATH>}...Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{<FILE_PATH>}...Caused by: java.net.ConnectException: Connection refused (Connection refused)
Cause
This error will be seen when an Appian environment is configured with a web server to use HTTPS/SSL scheme. All email requests in Appian are routed through the server specified in the conf.suite.SERVER_AND_PORT property unless values are given for conf.suite.MAIL_SCHEME and conf.suite.MAIL_SERVER_AND_PORT, all found in custom.properties located in <APPIAN_HOME>/ear/suite.ear/conf.
conf.suite.SERVER_AND_PORT
conf.suite.MAIL_SCHEME
conf.suite.MAIL_SERVER_AND_PORT
<APPIAN_HOME>/ear/suite.ear/conf
The above symptoms are a result of Appian trying to route email requests from the application server to the web server. As the web server has been configured with SSL, the application server needs to use SSL for creating the email body. By default, the application server does not have the necessary certificates to create this connection and thus it fails to create the email body.
Action
Workaround
Affected Versions:
Last Reviewed