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.

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