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

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 803 views
  • 0 likes
  • 3 in conversation