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.
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.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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