<?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 I think the solution below is in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/MAPIEx-SenderEncoded-vs-SenderEmail/m-p/77213#M29501</link>
    <description>I think the solution below is a valid solution, I'd love some feedback:
				' msg.From =&amp;gt; reply.To
				Dim theSender As String = msg.SenderEncoded 'Store the ""SenderEncoded""
				If InStr(theSender, """") &amp;gt; 0 Then 'Check if ""SenderEncoded"" contains """"
					If InStr(theSender, """") &amp;gt; 0 Then 'Check if ""SenderEncoded"" contains the ""SenderEmail"" surrounded by """"
						theSender = msg.SenderEmail 'Set the address
					Else Throw New MAPIException( _
					""Failed to validate email address(SenderEncoded)"") 'Throw exception if for some reason ""SenderEncoded"" does not contain</description>
    <pubDate>Mon, 18 Sep 2017 19:21:00 GMT</pubDate>
    <dc:creator>joakimeklund</dc:creator>
    <dc:date>2017-09-18T19:21:00Z</dc:date>
    <item>
      <title>MAPIEx - SenderEncoded vs SenderEmail</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MAPIEx-SenderEncoded-vs-SenderEmail/m-p/77212#M29500</link>
      <description>Hi,

Our team has come across an issue with the "Reply To Mail" action. Sometimes the "SenderEncoded" property returns "email.example@email.com " which results in failure to reply to the mail. Whilst the "SenderEmail", to my limited knowledge on the subject, does not return the email again surrounded with "". 

The code of the "Reply To Mail" action:

    reply.AddRecipients(RecipientType.TO, msg.SenderEncoded)


My question is, what difference is it between the two properties "SenderEncoded" and "SenderEmail"? Which one is favoured to use? I was thinking of modifying the action to something like this to ensure that the sender is indeed the correct one:

Dim theSender As String = msg.SenderEncoded
     If InStr(theSender, "") &amp;gt; 0 Then
	ValidSender= True
    Else
	ValidSender ="false
    End If

And then throw an exception.

I would like some clarification before proceeding. It is, of course, high importance that any mailing is done securely and properly.

Best Regards,

Joakim</description>
      <pubDate>Mon, 18 Sep 2017 14:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MAPIEx-SenderEncoded-vs-SenderEmail/m-p/77212#M29500</guid>
      <dc:creator>joakimeklund</dc:creator>
      <dc:date>2017-09-18T14:33:00Z</dc:date>
    </item>
    <item>
      <title>I think the solution below is</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MAPIEx-SenderEncoded-vs-SenderEmail/m-p/77213#M29501</link>
      <description>I think the solution below is a valid solution, I'd love some feedback:
				' msg.From =&amp;gt; reply.To
				Dim theSender As String = msg.SenderEncoded 'Store the ""SenderEncoded""
				If InStr(theSender, """") &amp;gt; 0 Then 'Check if ""SenderEncoded"" contains """"
					If InStr(theSender, """") &amp;gt; 0 Then 'Check if ""SenderEncoded"" contains the ""SenderEmail"" surrounded by """"
						theSender = msg.SenderEmail 'Set the address
					Else Throw New MAPIException( _
					""Failed to validate email address(SenderEncoded)"") 'Throw exception if for some reason ""SenderEncoded"" does not contain</description>
      <pubDate>Mon, 18 Sep 2017 19:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MAPIEx-SenderEncoded-vs-SenderEmail/m-p/77213#M29501</guid>
      <dc:creator>joakimeklund</dc:creator>
      <dc:date>2017-09-18T19:21:00Z</dc:date>
    </item>
  </channel>
</rss>

