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

Hello All,

 

I have done mail automation using SAS ,  but the delivery id is been like SAS-sytem@XX.com default SAS mail id on behalf on my personal id. So is there any way I can change the default mail id of SAS system temporarily  and use some other name??

 

Please do the needful. Thanks!!

1 ACCEPTED SOLUTION

Accepted Solutions
s_lassen
Meteorite | Level 14

If I understand you correctly, you want to change the name/address of the sender, so that you can send on behalf of your department or whatever.

 

You can do that using the FROM= option in the email filename specification. You can also specify the return address using the SENDER=option (if the mail cannot be delivered, the error message will be sent to the email address given here).

 

You can also do it dynamically, by using PUT "!EM_FROM! <address>" or PUT "!EM_SENDER! <address>" in your datastep.

View solution in original post

3 REPLIES 3
Kalind_Patel
Lapis Lazuli | Level 10

If you're using SAS Codes to shoot an email, you can use filename statement, SMTP Access method, Here's a link:

http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002058232.htm

In this method you've option "From=" ; Use this option in and give it to the other name;
For eg:

from="Kalind Patel <Kalind.Patel@xxx.com>";

Hope it helps!

arunrami
Pyrite | Level 9

Now I am getting mail like from : SAS-System@xxx.com on Behlaf My Personal ID<arun.ramji@XX.com>.

 

I want to change the SAS system mail id to some other Mail id or else want to hide it..

s_lassen
Meteorite | Level 14

If I understand you correctly, you want to change the name/address of the sender, so that you can send on behalf of your department or whatever.

 

You can do that using the FROM= option in the email filename specification. You can also specify the return address using the SENDER=option (if the mail cannot be delivered, the error message will be sent to the email address given here).

 

You can also do it dynamically, by using PUT "!EM_FROM! <address>" or PUT "!EM_SENDER! <address>" in your datastep.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3 replies
  • 2089 views
  • 0 likes
  • 3 in conversation