<?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: Encrypted Email and the Outlook VBO in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47582#M3300</link>
    <description>Thank you &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; for fantanstic solution.​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nilesh Jadhav &lt;BR /&gt;Senior RPA Specialist&lt;BR /&gt;ADP&lt;BR /&gt;India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 30 May 2022 13:40:00 GMT</pubDate>
    <dc:creator>NileshJadhavBP</dc:creator>
    <dc:date>2022-05-30T13:40:00Z</dc:date>
    <item>
      <title>Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47575#M3293</link>
      <description>I'm posting this as a top-level discussion for anyone that may be looking for an answer to the question of whether the Outlook VBO can be used to send encrypted/signed emails.&lt;BR /&gt;&lt;BR /&gt;I've looked into this a bit based on information I've found on the internet. Creating an encrypted email in Outlook is pretty easy when you do it manually via the UI (assuming your Outlook client or Exchange server are properly configured). Microsoft provides a handy little button titled &lt;STRONG&gt;Encryption&lt;/STRONG&gt; on the &lt;STRONG&gt;Options&lt;/STRONG&gt; tab.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25641.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25774i4424DBCA70E6E976/image-size/large?v=v2&amp;amp;px=999" role="button" title="25641.png" alt="25641.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Unfortunately, doing this programmatically via interop with Outlook is bit more of a pain. 🤦‍&lt;span class="lia-unicode-emoji" title=":male_sign:"&gt;♂️&lt;/span&gt; Below is some code you can add to the Code stage in the &lt;EM&gt;&lt;STRONG&gt;Send Email&lt;/STRONG&gt;&lt;/EM&gt; action of the &lt;STRONG&gt;MS Outlook Email VBO&lt;/STRONG&gt; that should allow you to encrypt and/or sign emails (assuming you have an appropriate certificate installed and configured):&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Const PR_SECURITY_FLAGS As String = "http://schemas.microsoft.com/mapi/proptag/0x6E010003"

' Check flags for Encryption and Signing.
If (Encrypt_Message) And (Sign_Message) Then 
	mail.PropertyAccessor.SetProperty(PR_SECURITY_FLAGS, &amp;amp;H3)
ElseIf (Encrypt_Message) Then
	mail.PropertyAccessor.SetProperty(PR_SECURITY_FLAGS, &amp;amp;H1)
ElseIf (Sign_Message) Then
	mail.PropertyAccessor.SetProperty(PR_SECURITY_FLAGS, &amp;amp;H2)
End If
​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;If you choose to add this code to your VBO, I would recommend that you create a backup copy of the VBO to make it easier to rollback should you encounter any issue.&lt;BR /&gt;&lt;BR /&gt;You can add the code anywhere in the Code stage titled &lt;STRONG&gt;Send Item&lt;/STRONG&gt; of the &lt;EM&gt;&lt;STRONG&gt;Send Email&lt;/STRONG&gt;&lt;/EM&gt; action so long as it's after the line where the variable &lt;STRONG&gt;mail&lt;/STRONG&gt; is defined and initialized:&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="25642.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25772i1592873D0917398E/image-size/large?v=v2&amp;amp;px=999" role="button" title="25642.png" alt="25642.png" /&gt;&lt;/span&gt;&lt;BR /&gt;And before the two lines at the end of the Code stage where the mail item is saved and actually sent:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25643.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25775iC18B5BC4A7EF3546/image-size/large?v=v2&amp;amp;px=999" role="button" title="25643.png" alt="25643.png" /&gt;&lt;/span&gt;&lt;BR /&gt;There are a few things to be aware of though:&lt;BR /&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;There are other examples on the internet that show this in a slightly cleaner fashion. In those cases they are performing a bitwise OR of any existing value of the PR_SECURITY_FLAGS property and the new value. That's all well and good, but my personal testing in v6.10.4 shows that when you try to pass any sort of VB.NET variable into the &lt;STRONG&gt;SetProperty&lt;/STRONG&gt; call results in a &lt;STRONG&gt;Type Mismatch&lt;/STRONG&gt; exception. That's why I have 3 separate lines that basically do the same thing just with a different hardcoded value at the end. I tried using variables of type Long, Integer, UInteger, ULng, Int16, Int32, Object, and String. None of them worked. 🤷‍&lt;span class="lia-unicode-emoji" title=":male_sign:"&gt;♂️&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;The code above expects that you'll define two input variables on the &lt;STRONG&gt;Send Email&lt;/STRONG&gt; action called &lt;EM&gt;&lt;STRONG&gt;Encrypt Message&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;Sign Message&lt;/STRONG&gt;,&lt;/EM&gt; and those will be passed into the Code stage. Those variables are of type &lt;STRONG&gt;Flag&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;VERY IMPORTANT:&lt;/STRONG&gt;&lt;/SPAN&gt; If you make this change and you call the action on a machine who's Outlook installation has NOT been previously configured to support sending emails with encryption and signing, a pop-up window, from Outlook, will block the BP process from moving ahead. The pop-up is basically a message stating that the Outlook client has not been configured with a proper Digital ID certificate that can be used for encryption and/or signing. At that point all you can do is click the OK button on the dialog to dismiss it. When you do that, you'll receive an exception in the Code stage stating that the action was aborted.&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;UPDATES&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt;20220218 - There is another option for supporting encryption in emails that we're investigating. It involves the use of &lt;STRONG&gt;Sensitivity Labels&lt;/STRONG&gt; and &lt;STRONG&gt;Azure Information Protection&lt;/STRONG&gt;. &lt;EM&gt;&lt;SPAN style="text-decoration: underline;"&gt;This only apples to users of Microsoft 365 though&lt;/SPAN&gt;&lt;/EM&gt;. Currently, the Microsoft VBOs (Excel, Word, and Outlook) do not support Sensitivity Labels, but it is a feature we're looking at adding. With Sensitivity Labels, a specific label can be applied to files/email, either automatically or manually, that results in the file/email being encrypted. You can track the progress of this work, as well as vote for it, through the &lt;A href="https://dxassetideas.blueprism.com/ideas/DXASSETS-I-155" target="_blank" rel="noopener"&gt;DX Ideas Portal&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;A data-tag-text="Outlook" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=%23Outlook&amp;amp;executesearch=true" data-tag-key="4b465da4-2fd4-49db-9ffc-052f746145cc"&gt;#Outlook&lt;/A&gt; &lt;A data-tag-text="EncryptedEmail" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=%23EncryptedEmail&amp;amp;executesearch=true" data-tag-key="76b1e628-ad90-4b61-bb28-e563eca6d712"&gt;#EncryptedEmail&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------​​​</description>
      <pubDate>Tue, 15 Feb 2022 20:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47575#M3293</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-02-15T20:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47576#M3294</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;Many thanks for summarize all this functionality. Really helpfull!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;634726270&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47576#M3294</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-02-16T06:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47577#M3295</link>
      <description>Great solution posted there &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; . I will try it sometime for sure at my end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47577#M3295</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-02-16T09:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47578#M3296</link>
      <description>Thanks &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; for detailed explanation. I was looking for the solution as asked on another thread as well.&amp;nbsp; You are too good :)​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Neeraj Kumar&lt;BR /&gt;Technical Architect&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 13:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47578#M3296</guid>
      <dc:creator>Neel1</dc:creator>
      <dc:date>2022-02-16T13:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47579#M3297</link>
      <description>Thanks &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; for the solution and detailed explanation. I Appreciate the efforts you put in this topic.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Saurabh Goswami&lt;BR /&gt;RPA Architect&lt;BR /&gt;Ericsson&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 13:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47579#M3297</guid>
      <dc:creator>esaugos</dc:creator>
      <dc:date>2022-02-16T13:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47580#M3298</link>
      <description>&lt;SPAN&gt;Appreciate your help &amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;SPAN&gt; .Nice case to include for mail automations&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shikhar Mishra &lt;BR /&gt;RPA Lead&lt;BR /&gt;Infosys Pvt Ltd&lt;BR /&gt;Pune,India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47580#M3298</guid>
      <dc:creator>Rambo27</dc:creator>
      <dc:date>2022-02-16T16:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47581#M3299</link>
      <description>Great Solution Eric, thanks for sharing.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ravi Kumar&lt;BR /&gt;Sr Automation Designer&lt;BR /&gt;Ericsson&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Feb 2022 11:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47581#M3299</guid>
      <dc:creator>RaviKumar3</dc:creator>
      <dc:date>2022-02-17T11:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Encrypted Email and the Outlook VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47582#M3300</link>
      <description>Thank you &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; for fantanstic solution.​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nilesh Jadhav &lt;BR /&gt;Senior RPA Specialist&lt;BR /&gt;ADP&lt;BR /&gt;India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 30 May 2022 13:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Encrypted-Email-and-the-Outlook-VBO/m-p/47582#M3300</guid>
      <dc:creator>NileshJadhavBP</dc:creator>
      <dc:date>2022-05-30T13:40:00Z</dc:date>
    </item>
  </channel>
</rss>

