<?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: SAS Email: Formatting 'from=' email address display name as &amp;quot;Last, First&amp;quot; in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270802#M18786</link>
    <description>&lt;P&gt;I was afraid of this - thanks for the research. &amp;nbsp;I held on to some hope because the email was still being processed correctly, but only the comma-firstname portion was being dropped, so I thought that maybe there would be a clever nested quote or escape character trick that I hadn't unearthed in my searching. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2016 22:26:52 GMT</pubDate>
    <dc:creator>k_o</dc:creator>
    <dc:date>2016-05-16T22:26:52Z</dc:date>
    <item>
      <title>SAS Email: Formatting 'from=' email address display name as "Last, First"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270747#M18780</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lately I've found a great deal of value in automating emails for my report outputs. &amp;nbsp;&lt;SPAN&gt;In my SAS programs, I have been specifying the from=('first.last@domain.com'), and therefore the automated emails show up as from first.last@domain.com.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, within our company outlook defaults, emails are sorted as "LastName, FirstName". &amp;nbsp;When a business user searches for one of my reports, they do not appear sorted with my regular emails because of the difference in displayed names. &amp;nbsp;This prompts the user to ask me to resend my report to them, or they don't even realize I already sent the ad-hoc report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After researching the issue, I found that you can specify a display name by putting the email address in&amp;nbsp;angle brackets (ref1 below). &amp;nbsp;However, if I use Last, First with a comma, the first name is ignored and the email comes from LastName only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;from = ('Last, First&amp;nbsp;&amp;lt;first.last@domain.com&amp;gt;') &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----&amp;gt; Email shows up from "Last"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried other variations of nested quotes with no luck, such as&amp;nbsp;&lt;SPAN&gt;from = ('"&lt;/SPAN&gt;&lt;SPAN&gt;Last&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;First"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;first.last&lt;/SPAN&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;domain&lt;/SPAN&gt;&lt;SPAN&gt;.com&amp;gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any ideas how I can get the email send to properly display as "Last, First" within outlook?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'm using outlook 2010 32-bit, SAS EG 7.1 HF1, sas server 9.4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ref1 - filename statement reference&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n0ig2krarrz6vtn1aw9zzvtez4qo.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 18:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270747#M18780</guid>
      <dc:creator>k_o</dc:creator>
      <dc:date>2016-05-16T18:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Email: Formatting 'from=' email address display name as "Last, First"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270776#M18785</link>
      <description>&lt;P&gt;I did a little digging and found that most mailers (SMTP especially) use commas and other characters as delimiters and won't allow you to place them in the "From" field. &amp;nbsp;This isn't SAS stripping them out -- it's the SMTP libraries (probably) that are at work under the covers.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The only workarounds I've seen involve changing the mailer programs to allow the commas, but I don't think you have access to do that in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course you can omit the comma, and that will support your sorting. &amp;nbsp;But I understand that's not the display experience that you want.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270776#M18785</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-05-16T19:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Email: Formatting 'from=' email address display name as "Last, First"</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270802#M18786</link>
      <description>&lt;P&gt;I was afraid of this - thanks for the research. &amp;nbsp;I held on to some hope because the email was still being processed correctly, but only the comma-firstname portion was being dropped, so I thought that maybe there would be a clever nested quote or escape character trick that I hadn't unearthed in my searching. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 22:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Email-Formatting-from-email-address-display-name-as-quot/m-p/270802#M18786</guid>
      <dc:creator>k_o</dc:creator>
      <dc:date>2016-05-16T22:26:52Z</dc:date>
    </item>
  </channel>
</rss>

