<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1914 System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1914 System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error</link><pubDate>Tue, 16 Apr 2019 22:02:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Current Revision posted to Appian Knowledge Base by Jordan Horwat on 4/16/2019 10:02:42 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to deliver.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;&lt;span&gt;With &lt;code&gt;DEBUG&lt;/code&gt; logging turned on, the application server log will show the the following output:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This shows that the email has been configured, the &amp;quot;to email&amp;quot; is correct, and the temporary password is being generated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When generating the email body, internal services in the Appian environment connect to the location specified in the &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; property, unless the properties &lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt; and &lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt; are set. The &amp;quot;Email body failed to render... Connection refused&amp;quot; error occurs when the internal services cannot connect to the specified location, which could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;The Appian environment is configured with a web server to use HTTPS/SSL scheme, but the SSL certificate is not trusted, which causes the connection to fail.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There could be a miss-match between the hosts file and the server/port for the mail server, which prevents it connecting to &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>KB-1914 System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/24</link><pubDate>Tue, 16 Apr 2019 22:02:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 24 posted to Appian Knowledge Base by Jordan Horwat on 4/16/2019 10:02:31 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to deliver.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;&lt;span&gt;With DEBUG logging turned on, the application server log will show the the following output:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This shows that the email has been configured, the &amp;quot;to email&amp;quot; is correct, and the temporary password is being generated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When generating the email body, internal services in the Appian environment connect to the location specified in the &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; property, unless the properties &lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt; and &lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt; are set. The &amp;quot;Email body failed to render... Connection refused&amp;quot; error occurs when the internal services cannot connect to the specified location, which could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;The Appian environment is configured with a web server to use HTTPS/SSL scheme, but the SSL certificate is not trusted, which causes the connection to fail.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There could be a miss-match between the hosts file and the server/port for the mail server, which prevents it connecting to &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/23</link><pubDate>Tue, 16 Apr 2019 21:55:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 23 posted to Appian Knowledge Base by Tom Ryan on 4/16/2019 9:55:53 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to be delivered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;&lt;span&gt;With DEBUG logging turned on, the application server log will show the the following output:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This shows that the email has been configured, the &amp;quot;to email&amp;quot; is correct, and the temporary password is being generated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When generating the email body, internal services in the Appian environment connect to the location specified in the &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; property, unless the properties &lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt; and &lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt; are set. The &amp;quot;Email body failed to render... Connection refused&amp;quot; error occurs when the internal services cannot connect to the specified location, which could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;The Appian environment is configured with a web server to use HTTPS/SSL scheme, but the SSL certificate is not trusted, which causes the connection to fail.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There could be a miss-match between the hosts file and the server/port for the mail server, which prevents it connecting to &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/22</link><pubDate>Tue, 16 Apr 2019 12:59:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 22 posted to Appian Knowledge Base by Ryan Evans on 4/16/2019 12:59:10 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to be delivered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;&lt;span&gt;With DEBUG logging turned on, the application server log will show the the following output:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This shows that the email has been configured, the &amp;quot;to email&amp;quot; is correct, and the temporary password is being generated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When generating the email body, internal services in the Appian environment connect to the location specified in the &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; property, unless the properties &lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt; and &lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt; are set. The &amp;quot;Email body failed to render... Connection refused&amp;quot; error occurs when the internal services cannot connect to the specified location, which could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;The Appian environment is configured with a web server to use HTTPS/SSL scheme, but the SSL certificate is not trusted, which causes the connection to fail.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There could occur when there is a miss-match between the hosts file and the server/port for the mail server, which prevents it connecting to &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/21</link><pubDate>Tue, 16 Apr 2019 12:57:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 21 posted to Appian Knowledge Base by Ryan Evans on 4/16/2019 12:57:11 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to be delivered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With DEBUG logging turned on, the application server log will show the the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When generating the email body, internal services in the Appian environment connect to the location specified in the &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt; property, unless the properties &lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt; and &lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt; are set. The &amp;quot;Email body failed to render... Connection refused&amp;quot; error occurs when the internal services cannot connect to the specified location, which could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;The Appian environment is configured with a web server to use HTTPS/SSL scheme, but the SSL certificate is not trusted, which causes the connection to fail.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There could occur when there is a miss-match between the hosts file and the server/port for the mail server, which prevents it connecting to &lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/20</link><pubDate>Tue, 16 Apr 2019 12:56:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 20 posted to Appian Knowledge Base by Ryan Evans on 4/16/2019 12:56:15 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to be delivered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With DEBUG logging turned on, the application server log will show the the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When generating the email body, internal services in the Appian environment connect to the location specified in the conf.suite.SERVER_AND_PORT property, unless the properties conf.suite.MAIL_SCHEME and conf.suite.MAIL_SERVER_AND_PORT are set. The &amp;quot;Email body failed to render... Connection refused&amp;quot; error occurs when the internal services cannot connect to the specified location, which could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;The Appian environment is configured with a web server to use HTTPS/SSL scheme, but the SSL certificate is not trusted, which causes the connection to fail.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;There could occur when there is a miss-match between the hosts file and the server/port for the mail server, which prevents it connecting to conf.suite.SERVER_AND_PORT.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/19</link><pubDate>Mon, 15 Apr 2019 13:49:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Ryan Evans on 4/15/2019 1:49:45 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to be delivered.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With DEBUG logging turned on, the application server log will show the the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This error could be caused by one of the following issues:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="font-family:inherit;"&gt;The 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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property, unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;&lt;/span&gt;.&lt;span style="font-family:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;The above symptoms are a result of Appian&amp;nbsp;attempting 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.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:inherit;"&gt;There could occur when there is a miss-match between the hosts file and the server/port for the mail server.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by connecting directly to the mail server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/18</link><pubDate>Fri, 12 Apr 2019 17:10:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Ryan Evans on 4/12/2019 5:10:57 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to deliver.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With DEBUG logging turned on, the application server log will show the the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This error&amp;nbsp;is 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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property, unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;&lt;/span&gt;.&lt;span style="font-family:inherit;"&gt;&amp;nbsp;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The above symptoms are a result of Appian&amp;nbsp;attempting 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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This could occur when there is a miss-match between the hosts file and the server/port for the mail server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/17</link><pubDate>Fri, 12 Apr 2019 17:00:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Jordan Horwat</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Jordan Horwat on 4/12/2019 5:00:05 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email fails to deliver.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With DEBUG logging turned on, the application server log will show the the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will also show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This error&amp;nbsp;is 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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property, unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;&lt;/span&gt;.&lt;span style="font-family:inherit;"&gt;&amp;nbsp;These values are specified in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located in:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt; for Appian 18.2 and later.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;for Appian 18.1 and earlier.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The above symptoms are a result of Appian&amp;nbsp;attempting 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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed:&amp;nbsp;April 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/16</link><pubDate>Fri, 12 Apr 2019 15:01:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Ryan Evans on 4/12/2019 3:01:23 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email will not be sent.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;With DEBUG turning on, the Application server log will show the contents of the email:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;However, the application server log will show the following error:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;Exception:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:inherit;"&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/span&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;span style="font-family:inherit;"&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Last Reviewed: March 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/15</link><pubDate>Fri, 12 Apr 2019 15:01:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Ryan Evans on 4/12/2019 3:01:01 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the email will not be sent.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;With DEBUG turning on, the Application server log will show the contents of the email:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-size:inherit;"&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lastName -&amp;gt; &amp;lt;LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_username -&amp;gt; &amp;lt;ADMIN_USERNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - tz -&amp;gt; &amp;lt;TIME_ZONE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_lastName -&amp;gt; &amp;lt;ADMIN_LASTNAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_email -&amp;gt; &amp;lt;ADMIN_EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - firstName -&amp;gt; &amp;lt;FIRST_NAME&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - temporaryPassword -&amp;gt; &amp;lt;TEMP_PASSWORD&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - calendarId -&amp;gt; &amp;lt;CALENDAR_TYPE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - taskLink -&amp;gt; &amp;lt;TASK_LINK&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - admin_firstName -&amp;gt; &amp;lt;ADMIN_FIRSTNAME&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - loginPageLink -&amp;gt; &amp;lt;LOGIN_PAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - lang -&amp;gt; &amp;lt;LANGUAGE&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - timesent -&amp;gt; &amp;lt;TIME_SENT&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - email -&amp;gt; &amp;lt;EMAIL&amp;gt;&lt;br /&gt;YYYY-MM-DD HH:MM:ss [Appian Work Item - 581 - NotificationsEmail : MailRequest] DEBUG com.appiancorp.process.engine.MailBody - username -&amp;gt; &amp;lt;USERNAME&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;However, the application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT:KB-XXXX System emails/process emails are not sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/14</link><pubDate>Wed, 13 Mar 2019 10:21:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Ryan Evans on 3/13/2019 10:21:59 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the logs will show the contents of the email, but the user will never receive the message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are not being sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/13</link><pubDate>Wed, 13 Mar 2019 09:23:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Ryan Evans on 3/13/2019 9:23:34 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the logs will show the contents of the email, but the user will never receive the message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are not being sent with "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/12</link><pubDate>Wed, 13 Mar 2019 09:11:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Ryan Evans on 3/13/2019 9:11:33 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;When attempting to reset a password or use the Send Email Smart Service, the logs will show the contents of the email, but the user will never receive the message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH_TO_EMAIL_TEMPLATE&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;&lt;/pre&gt;
&lt;pre&gt;FILE_PATH_TO_EMAIL_TEMPLATE&lt;/pre&gt;
&lt;pre&gt;&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;&lt;/pre&gt;
&lt;pre&gt;FILE_PATH_TO_EMAIL_TEMPLATE&lt;/pre&gt;
&lt;pre&gt;&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/1</link><pubDate>Mon, 11 Mar 2019 15:31:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 3:31:52 PM&lt;br /&gt;
&lt;p&gt;test&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/11</link><pubDate>Mon, 11 Mar 2019 15:00:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 3:00:45 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;This could occur when the FQDN/IP for the mail server is defined in the hosts file, there is a possibility that the mail servers&amp;#39; FQDN and port was not set up or there is a miss-match between the hosts file and the server/port for the mail server.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change/add the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/10</link><pubDate>Mon, 11 Mar 2019 13:16:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 1:16:47 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located on the application server:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/9</link><pubDate>Mon, 11 Mar 2019 13:16:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 1:16:22 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;p&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;br /&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located on the application server:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/8</link><pubDate>Mon, 11 Mar 2019 13:15:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 1:15:16 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;br /&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located on the application server:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/7</link><pubDate>Mon, 11 Mar 2019 13:14:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 1:14:50 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The error can be resolved by using the application server to create the email body instead of the web server. Change the following lines in the&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;file located on the application server:&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre&gt;&lt;code&gt;conf.suite.MAIL_SCHEME=http
conf.suite.MAIL_SERVER_AND_PORT=localhost:&amp;lt;APP_SERVER_PORT&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Save the file and restart the application server for the changes to take effect.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions&lt;/span&gt;&lt;/p&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: March 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item><item><title>System emails/process emails are no longer being sent with an "Email body failed to render... Connection refused" error</title><link>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error/revision/6</link><pubDate>Mon, 11 Mar 2019 13:11:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:147e8186-2233-4ead-b2c8-89a898f7ea8a</guid><dc:creator>Ryan Evans</dc:creator><comments>https://community.appian.com/support/w/kb/1375/kb-1914-system-emails-process-emails-are-not-sent-with-email-body-failed-to-render-connection-refused-error#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Ryan Evans on 3/11/2019 1:11:53 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Symptoms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application server log will show the following error:&lt;/p&gt;
&lt;pre&gt;Exception:&lt;br /&gt;javax.resource.spi.work.WorkCompletedException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: javax.ejb.EJBException: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: com.appiancorp.process.engine.EmailBodyException: Email body failed to render: MailBody{&amp;lt;FILE_PATH&amp;gt;}&lt;br /&gt;...&lt;br /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;Cause&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;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&amp;nbsp;&lt;code&gt;conf.suite.SERVER_AND_PORT&lt;/code&gt;&amp;nbsp;property unless values are given for&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SCHEME&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;conf.suite.MAIL_SERVER_AND_PORT&lt;/code&gt;, all found in&amp;nbsp;&lt;strong&gt;custom.properties&lt;/strong&gt;&amp;nbsp;located in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/ear/suite.ear/conf&lt;/code&gt;&amp;nbsp;or for version 18.2 and higher,&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/conf&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Action&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Workaround&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Affected Versions:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Last Reviewed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mail, infrastructure&lt;/div&gt;
</description></item></channel></rss>