BookmarkSubscribeRSS Feed
rinsabraham
Obsidian | Level 7

Hi Team,

How can I see who is in a group or mailing list before I send an e-mail message? I want to restrict one of the recipient from this mail group.

 

refer the below code

options emailsys=SMTP;
options emailhost=Sssy.llic.com;
options emailport=25;
options emailauthprotocol=NONE;
options emailid="abc@gmail.com";
options sysuserid
filename myemail EMAIL DEBUG;
data _null_;
file myemail
from="abc@gmail.com"
to=('abc-Prod-Licsub')
cc=('xcy@gmail.com')
subject='Suspensed_Claims_Report'
attach=('c\Suspensed_Claims_Report.xlsb');
  put "Attached is Suspensed_Claims_Report";
run;

filename myemail clear;

1 REPLY 1
ballardw
Super User

Are you asking how to query your email address book for the members of the list 'abc-Prod-Licsub'?

 

If so, as an absolute minimum you would have to provide which email system is being used to see if anyone has an idea on how to connect and read the address book. Then how to build an exception may be possible.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 357 views
  • 0 likes
  • 2 in conversation