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;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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