<?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 Utility - SMTP email - send message with reference to data items in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98542#M46273</link>
    <description>&lt;P&gt;HI.&lt;/P&gt;
&lt;P&gt;I need some help configuring the properties for the SMTP send message action please. Usually I use the send exception email action but I'm a little stuck now.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How do I get it to use the HTML email template I have created?&lt;/LI&gt;
&lt;LI&gt;How do I get it to insert the data fields from the collection I want?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;This is my action properties so far:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35890.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35907iE1F74476C908AC94/image-size/large?v=v2&amp;amp;px=999" role="button" title="35890.png" alt="35890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Data.Submitter Email works.&lt;/P&gt;
&lt;P&gt;Where do I put the email template path?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;This is the HTML email template... How do I write it so it inserts the data fields?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35891.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35903iD1EB2CB779D31EAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="35891.png" alt="35891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Many Thanks in advanced &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Rhian&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 17:41:25 GMT</pubDate>
    <dc:creator>Rhian.Lowe</dc:creator>
    <dc:date>2023-09-19T17:41:25Z</dc:date>
    <item>
      <title>Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98542#M46273</link>
      <description>&lt;P&gt;HI.&lt;/P&gt;
&lt;P&gt;I need some help configuring the properties for the SMTP send message action please. Usually I use the send exception email action but I'm a little stuck now.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How do I get it to use the HTML email template I have created?&lt;/LI&gt;
&lt;LI&gt;How do I get it to insert the data fields from the collection I want?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;This is my action properties so far:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35890.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35907iE1F74476C908AC94/image-size/large?v=v2&amp;amp;px=999" role="button" title="35890.png" alt="35890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The Data.Submitter Email works.&lt;/P&gt;
&lt;P&gt;Where do I put the email template path?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;This is the HTML email template... How do I write it so it inserts the data fields?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35891.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35903iD1EB2CB779D31EAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="35891.png" alt="35891.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Many Thanks in advanced &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Rhian&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 17:41:25 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98542#M46273</guid>
      <dc:creator>Rhian.Lowe</dc:creator>
      <dc:date>2023-09-19T17:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98543#M46274</link>
      <description>&lt;P&gt;Hi Rhian,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;You can&amp;nbsp; insert HTML in calculation stage&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Ex1:&amp;nbsp; If you are trying to insert "Hello world" as html:&lt;BR /&gt;In calculation&amp;nbsp; it should be some thing like this&lt;/P&gt;
&lt;P&gt;Calculation stage-&amp;nbsp; "&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;Hello world&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;BR /&gt;Ex2: Hello world - &amp;lt;Dynamic value from Collection or text&amp;gt;&lt;BR /&gt;Calculation stage-&amp;nbsp; "&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;p&amp;gt;Hello world"&amp;amp;[dynmaic text here]&amp;amp;"&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;Refer below some of the threads which has implemented html:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=df3632c1-874b-45a6-a22f-5c492ed1f28c&amp;amp;CommunityKey=1be7947a-bc2f-4974-bb0a-6347e1a324f8" target="test_blank"&gt;https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=df3632c1-874b-45a6-a22f-5c492ed1f28c&amp;amp;CommunityKey=1be7947a-bc2f-4974-bb0a-6347e1a324f8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.blueprism.com/question/search-for-vb-script-for-converting-collection-as-html-table#aab921c2-cf97-43b4-98d8-0189ad464c45" target="test_blank"&gt;https://community.blueprism.com/question/search-for-vb-script-for-converting-collection-as-html-table#aab921c2-cf97-43b4-98d8-0189ad464c45&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 17:54:48 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98543#M46274</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2023-09-19T17:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98544#M46275</link>
      <description>&lt;DIV&gt;
&lt;DIV class="group w-full text-token-text-primary border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654]" data-testid="conversation-turn-9"&gt;
&lt;DIV class="p-4 justify-center text-base md:gap-6 md:py-6 m-auto"&gt;
&lt;DIV class="flex flex-1 gap-4 text-base mx-auto md:gap-6 md:max-w-2xl lg:max-w-[38rem] xl:max-w-3xl }"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]"&gt;
&lt;DIV class="flex flex-grow flex-col gap-3 max-w-full"&gt;
&lt;DIV class="min-h-[20px] flex flex-col items-start gap-3 overflow-x-auto whitespace-pre-wrap break-words"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;1. Use a referenced data item in the body field with HTML and CSS structure.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;lt;style&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; border-collapse: collapse;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; width: 100%;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; th, td {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; border: 1px solid #ccc;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; padding: 8px;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; text-align: left;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/style&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;/head&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;table&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;th&amp;gt;Nome&amp;lt;/th&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;th&amp;gt;Email&amp;lt;/th&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;2. You'll need to create a table structure using HTML and a loop. There are various ways to do this, but I find that using a base HTML and performing row-wise validation is the most commonly used approach.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Exemple: &lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=84aa3875-3873-43a8-ad4b-281751e6ec39&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer" target="test_blank"&gt;https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=84aa3875-3873-43a8-ad4b-281751e6ec39&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Sep 2023 18:01:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98544#M46275</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2023-09-19T18:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98545#M46276</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;Thanks for the help. I've managed to write it into the body of action but I am getting an exception. It doesn't like the "&amp;lt;br&amp;gt;" and bold actions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to I write these in the expression please?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;BW Rhian&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 09:28:57 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98545#M46276</guid>
      <dc:creator>Rhian.Lowe</dc:creator>
      <dc:date>2023-09-20T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98546#M46277</link>
      <description>&lt;P&gt;Hi Rhian,&lt;/P&gt;
&lt;P&gt;Please share the HTML body that you have tried creating, looking at it might help us in identifying the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 10:18:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98546#M46277</guid>
      <dc:creator>Babjee24</dc:creator>
      <dc:date>2023-09-20T10:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98547#M46278</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the body. It's pulling the text and data fields fine.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35887.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35906iC3959776ED2A6B95/image-size/large?v=v2&amp;amp;px=999" role="button" title="35887.png" alt="35887.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 10:48:30 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98547#M46278</guid>
      <dc:creator>Rhian.Lowe</dc:creator>
      <dc:date>2023-09-20T10:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Utility - SMTP email - send message with reference to data items</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98548#M46279</link>
      <description>&lt;P&gt;Hi Rhian,&lt;/P&gt;
&lt;P&gt;Attaching the screenshots of the test body that I've created and the corresponding email for the body I go for your reference. This code snippet is working fine for me, bold and line breaks are working as expected. As I can see from the screenshot that you've shared please make use of &amp;lt;/br&amp;gt; instead of &amp;lt;br&amp;gt; also you need not use "&amp;amp;&amp;amp;" before every HTML tag. "&amp;amp;&amp;amp;" this is used to attach a variable to text&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35888.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35901iBF1A3BF68820C7E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="35888.png" alt="35888.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35889.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35902i40664FC2E50853E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="35889.png" alt="35889.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I hope this helps...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:37:43 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-SMTP-email-send-message-with-reference-to-data-items/m-p/98548#M46279</guid>
      <dc:creator>Babjee24</dc:creator>
      <dc:date>2023-09-20T12:37:43Z</dc:date>
    </item>
  </channel>
</rss>

