Sending Email using SAS

Accepted Solution Solved
Reply
Super Contributor
Posts: 334
Accepted Solution

Sending Email using SAS

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


Accepted Solutions
Solution
‎02-08-2013 02:45 PM
Super Contributor
Posts: 334

Re: Sending Email using SAS

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


All Replies
Solution
‎02-08-2013 02:45 PM
Super Contributor
Posts: 334

Re: Sending Email using SAS

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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