BookmarkSubscribeRSS Feed
shuchidxt_gmail_com
Obsidian | Level 7

Hi,

 

Could you please let me know the below code will work if sending the report to multiple users.

 

 

%let email_address = ("abc@xxxmail.com" "efg@xxxmail.com" "abc@xxxmail.com" "efg@xxxmail.com");

filename myemail EMAIL
  to="&email_address"
  subject="&subj"
  content_type="text/html";
 ODS LISTING CLOSE;
 ODS HTML BODY = myemail (no_bottom_matter)
  style=festival;

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

1. Not won't. See the documentation.

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

 

2. It's easier and faster to try than to ask. 🙂

 

3. Try   to=&email_address

shuchidxt_gmail_com
Obsidian | Level 7

Thank you:) yes I have tried the suggested option but got error while running in autosys.

ERROR: Email: 550 5.0.0 Only pre-authorized systems may access this MTA.

 

what this mean? It is mail server issue? how it can be resolved?

smijoss1
Quartz | Level 8

did you try for TO="abc@gmail.com"   just to be sure. i most likely you are correct. but also could be office mail servers blocking email to personal email ids 

 

 

ChrisNZ
Tourmaline | Level 20

> what this mean? It is mail server issue? how it can be resolved?

It seems like the email server is rejecting your connection. Ask the admins to look in the log.

One possible reason is explained here http://forums.networkautomation.com/forum/messageview.cfm?catid=42&threadid=8808

 

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