BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
k_o
Fluorite | Level 6 k_o
Fluorite | Level 6

Good afternoon,

 

Lately I've found a great deal of value in automating emails for my report outputs.  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.

 

However, within our company outlook defaults, emails are sorted as "LastName, FirstName".  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.  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.

 

After researching the issue, I found that you can specify a display name by putting the email address in angle brackets (ref1 below).  However, if I use Last, First with a comma, the first name is ignored and the email comes from LastName only.

 

     

from = ('Last, First <first.last@domain.com>') 

       ----> Email shows up from "Last"

 

 

I've tried other variations of nested quotes with no luck, such as from = ('"Last, First" <first.last@domain.com>')

 

Any ideas how I can get the email send to properly display as "Last, First" within outlook?

 

I'm using outlook 2010 32-bit, SAS EG 7.1 HF1, sas server 9.4

 

ref1 - filename statement reference

http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n0ig2krarrz6vtn...

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

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.  This isn't SAS stripping them out -- it's the SMTP libraries (probably) that are at work under the covers.


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.

 

Of course you can omit the comma, and that will support your sorting.  But I understand that's not the display experience that you want.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

View solution in original post

2 REPLIES 2
ChrisHemedinger
Community Manager

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.  This isn't SAS stripping them out -- it's the SMTP libraries (probably) that are at work under the covers.


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.

 

Of course you can omit the comma, and that will support your sorting.  But I understand that's not the display experience that you want.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
k_o
Fluorite | Level 6 k_o
Fluorite | Level 6

I was afraid of this - thanks for the research.  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.  

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2790 views
  • 1 like
  • 2 in conversation