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;
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.
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!
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.