BookmarkSubscribeRSS Feed
shivrajpawar98
Fluorite | Level 6

Hi All,

 

Can anyone help me , i need to send a email though sas code (SMTP protocol) on sas viya4.

How can i do it.

 

Regards,

Shivraj

1 REPLY 1
SASKiwi
PROC Star

I suggest you talk to your SAS administrator to see if the sending of email from Viya has been successfully implemented and to find out what SAS email settings are required. You can also run this program to find out what your default email settings are:

proc options group = email; 
run;

If no EMAILHOST server has been set then it is likely email is not configured on your SAS installation. 

 

If email settings are populated then you could try a simple test like this:

filename mymail email "My.EmailName@gmail.com"
         subject="SAS Email Test"
         ;

data _null_;
   file mymail;
   put 'This is a test.';
run;

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
  • 456 views
  • 0 likes
  • 2 in conversation