<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to catch errors that occurred while sending an email? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16515#M7305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not quite understand you, but, as I checked, &lt;SPAN class=""&gt;&lt;SPAN class="" title=""&gt;an exception message is written to the 'error' variable.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2019 13:16:12 GMT</pubDate>
    <dc:creator>maxlich</dc:creator>
    <dc:date>2019-01-09T13:16:12Z</dc:date>
    <item>
      <title>How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16509#M7299</link>
      <description>Hi all!I need to send emails, and I use a service task for it:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="SendEmail_1" name="Sending a notification by email" activiti:type="mail"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;&amp;lt;/documentation&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="to"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;acti</description>
      <pubDate>Fri, 28 Dec 2018 06:58:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16509#M7299</guid>
      <dc:creator>maxlich</dc:creator>
      <dc:date>2018-12-28T06:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16510#M7300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max Lich,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #8b8b8b; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #8b8b8b; background-color: #ffffff;"&gt;&lt;SPAN&gt;Are configure E-mail server configuration in config file?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;If not, Please configure like &lt;A href="http://activiti.org/userguide/index.html#configuration" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;Vidhi&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com/" rel="nofollow noopener noreferrer"&gt;Contcentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2018 11:32:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16510#M7300</guid>
      <dc:creator>vidhipanchal</dc:creator>
      <dc:date>2018-12-28T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16511#M7301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course, I have already done it. My emails are being sent and received successfully. But i also want to catch errors if errors occured.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2018 12:39:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16511#M7301</guid>
      <dc:creator>maxlich</dc:creator>
      <dc:date>2018-12-28T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16512#M7302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already create variable named "error" in your execution? The the logic only checks if the process variable (that holds &lt;CODE&gt;&lt;SPAN class=""&gt;exceptionVariableName&lt;/SPAN&gt;&lt;/CODE&gt;) is present in the execution, the mail task will not create a new variable for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2018 06:22:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16512#M7302</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2018-12-31T06:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16513#M7303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;However, how i wrote above, it had created the variable with specified name and had written &lt;SPAN class=""&gt;&lt;SPAN class="" title=""&gt;the error text to this variable. The only thing is that this text is not very informative.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 07:32:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16513#M7303</guid>
      <dc:creator>maxlich</dc:creator>
      <dc:date>2019-01-09T07:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16514#M7304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you get this INFO log "&lt;SPAN style="color: #032f62; background-color: #ffffff;"&gt;Ignoring email send error:&lt;/SPAN&gt;" with the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 08:31:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16514#M7304</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2019-01-09T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16515#M7305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not quite understand you, but, as I checked, &lt;SPAN class=""&gt;&lt;SPAN class="" title=""&gt;an exception message is written to the 'error' variable.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:16:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16515#M7305</guid>
      <dc:creator>maxlich</dc:creator>
      <dc:date>2019-01-09T13:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch errors that occurred while sending an email?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16516#M7306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what message do you get when you print your "error" variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Mail Activity always writes a message ("&lt;SPAN class=""&gt;Could not send e-mail in execution &lt;/SPAN&gt;" followed by the executionId) in the exception variable (only if the exception is EmailException) but it logs the specific exception info in the console. so you'll have to create your own service to implement such exception/variable specific logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helped&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 05:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-catch-errors-that-occurred-while-sending-an-email/m-p/16516#M7306</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2019-01-15T05:51:51Z</dc:date>
    </item>
  </channel>
</rss>

