BookmarkSubscribeRSS Feed
danweifis
Calcite | Level 5

Hi, I have created an outlook group (4 emails accounts). I want to send thorugh SAS automatic emails to this group.

 

I have read it distribution list and a few more topics and I can't find a solution.

 

filename myemail email

GROUP@outllook.com

subject='no email'

data _null_;

file myemail;

put 'no email got';

run;

 

Thanks

 

Daniel

1 REPLY 1
utrocketeng
Quartz | Level 8

it should work.  make sure you wrap the email address in quotes:

filename mailbox email
		TO=('usergroup@yourdomain.com')
		FROM=('NoReply <NOREPLY@yourdomain.com>')
		SENDER = ('NoReply <NOREPLY@yourdomain.com>')
		IMPORTANCE='HIGH'
		replyto='NOREPLY@yourdomain.com'
         Subject='Greetings, this is an email';
  
DATA _NULL_;
FILE Mailbox;
PUT "Greetings Someone,";
PUT "  This is a message from a SAS.";


RUN;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1290 views
  • 1 like
  • 2 in conversation