DATA Step, Macro, Functions and more

Email Working in SAS Studio University Edition but not in Base SAS

Reply
Super Contributor
Posts: 318

Email Working in SAS Studio University Edition but not in Base SAS

When I try to send an email in Base SAS I get some error that no default email etc. but when I try to run the same code in my SAS University Edition it was able to execute and send successfully. I tried to compare the configuration using proc options but there was no difference.

 

filename sendmail email ("myemail@email.com") subject="Testing";

data _null_; 
	file sendmail;
	put "Testing";
run; 

Greatly appreciate any suggestions on how to resolve and enable sending email thru Base SAS. My email account runs on a office365 subscription if that helps in anyway.

 

Thanks!

PROC Star
Posts: 7,363

Re: Email Working in SAS Studio University Edition but not in Base SAS

The following article describes what you have to do in order to send emails from sas: http://www2.sas.com/proceedings/forum2008/038-2008.pdf

 

Apparently, the cfg file in UE already contains the necessary settings.

 

Art, CEO, AnalystFinder.com

 

Super User
Posts: 6,936

Re: Email Working in SAS Studio University Edition but not in Base SAS

You need to set the emailhost option as described here: http://support.sas.com/documentation/cdl/en/lesysoptsref/69799/HTML/default/viewer.htm#p1v9dr6zep9p9...

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 2 replies
  • 137 views
  • 0 likes
  • 3 in conversation