<?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 How to convert mail address type -  Exchange to SMTP in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64912#M17616</link>
    <description>Hi,

I am using MAPIEx to 'Get' emails but sometime I am getting Exchange address in sender email address filed instead of SMTP address.

Could someone help me with solution or code on how to convert or get SMTP address if I am getting Exchange address.

&amp;nbsp;

Below is Exchange address which I am getting

/O=EXCHANGELABS/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=46932ED2875B4644A647DFA0CA3BDF1F-Nikhil Saini

&amp;nbsp;

Regards

Nikhil</description>
    <pubDate>Tue, 17 Apr 2018 13:17:00 GMT</pubDate>
    <dc:creator>NikhilSaini</dc:creator>
    <dc:date>2018-04-17T13:17:00Z</dc:date>
    <item>
      <title>How to convert mail address type -  Exchange to SMTP</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64912#M17616</link>
      <description>Hi,

I am using MAPIEx to 'Get' emails but sometime I am getting Exchange address in sender email address filed instead of SMTP address.

Could someone help me with solution or code on how to convert or get SMTP address if I am getting Exchange address.

&amp;nbsp;

Below is Exchange address which I am getting

/O=EXCHANGELABS/OU=EXCHANGE ADMINISTRATIVE GROUP (FYDIBOHF23SPDLT)/CN=RECIPIENTS/CN=46932ED2875B4644A647DFA0CA3BDF1F-Nikhil Saini

&amp;nbsp;

Regards

Nikhil</description>
      <pubDate>Tue, 17 Apr 2018 13:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64912#M17616</guid>
      <dc:creator>NikhilSaini</dc:creator>
      <dc:date>2018-04-17T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Hello guys,…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64913#M17617</link>
      <description>Hello guys,
I'm having the same issues since updating to MAPIEx Version 2.0.6
&amp;nbsp;
Any ideas?
Thans</description>
      <pubDate>Mon, 23 Apr 2018 15:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64913#M17617</guid>
      <dc:creator>DavidPfendt</dc:creator>
      <dc:date>2018-04-23T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Hi both,…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64914#M17618</link>
      <description>Hi both,
we had also similar program.
&amp;nbsp;
We found solution with code stage:
&lt;A href="https://msdn.microsoft.com/en-us/library/office/ff184624.aspx" target="test_blank"&gt;https://msdn.microsoft.com/en-us/library/office/ff184624.aspx&lt;/A&gt;
&amp;nbsp;
BR,
Martin</description>
      <pubDate>Mon, 07 May 2018 12:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64914#M17618</guid>
      <dc:creator>MartinParoubek</dc:creator>
      <dc:date>2018-05-07T12:13:00Z</dc:date>
    </item>
    <item>
      <title>You got sample code you can…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64915#M17619</link>
      <description>You got sample code you can post here Martin?&amp;nbsp;</description>
      <pubDate>Sat, 05 Jan 2019 03:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64915#M17619</guid>
      <dc:creator>pranavred</dc:creator>
      <dc:date>2019-01-05T03:59:00Z</dc:date>
    </item>
    <item>
      <title>Go into the code stage for…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64916#M17620</link>
      <description>&lt;P&gt;Go into the code stage for Get Mail. Around ln 43, you should be able to modify the code to look like this.&lt;/P&gt;
&lt;PRE class="language-markup"&gt;Sender_Name = msg.SenderName
if msg.SenderEmailType = ""EX"" then
	Sender_Email_Address = msg.Sender.GetExchangeUser.PrimarySmtpAddress
else
	Sender_Email_Address = msg.SenderEmail
end if
Subject = msg.Subject&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-convert-mail-address-type-Exchange-to-SMTP/m-p/64916#M17620</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-01-07T21:46:00Z</dc:date>
    </item>
  </channel>
</rss>

