SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
esjackso
Quartz | Level 8

I have been working to get the options set for sending SMTP email using the sas filename email options. That has been worked out all but a little detail. I cant figure out whether the problem is on the email server side or a SAS option that we cant find. When the sent email is received the mail is seen as from loginname@computername.domain. The way our system is set up is that our login name is not the same as our email address. For example ab1234@ncl-123456.domain instead of our actual email as ejackson@emaildomain.org. Setting the from on the email code on adds the "on behalf of" to the from line seen in the email.

Is there an option in SAS to "fix" this behavior or is then on the server side.

BTW - We are using Exchange servers for email

Thanks for any help!

EJ

1 ACCEPTED SOLUTION

Accepted Solutions
esjackso
Quartz | Level 8

After some additional testing I thing I have a work around ... but I would be interested in any other comments:

WORKAROUND:

Specify the from= on the filename statement and use the email directive "!EM_SENDER!= email address" in the data step that creates the email.

This seems to have solved the issue. But you have to use both in combination or you get either the "on behalf of" or the from address as the weird address being displayed.

EJ

View solution in original post

1 REPLY 1
esjackso
Quartz | Level 8

After some additional testing I thing I have a work around ... but I would be interested in any other comments:

WORKAROUND:

Specify the from= on the filename statement and use the email directive "!EM_SENDER!= email address" in the data step that creates the email.

This seems to have solved the issue. But you have to use both in combination or you get either the "on behalf of" or the from address as the weird address being displayed.

EJ

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1199 views
  • 0 likes
  • 1 in conversation