Help using Base SAS procedures

Send email from within SAS

Accepted Solution Solved
Reply
Super Contributor
Super Contributor
Posts: 440
Accepted Solution

Send email from within SAS

hi,

has anyone here used the SAS Studio Version?

I just tried to send an email as a practice (i never done this before):

 

filename outbox email 'Tom';

data _null_;
  file outbox
     to=('tom_rodd@hotmail.com')
     subject='Hello';
      put 'Hello';
run;
and the  logs show the message was sent but actually  the recepient never got it.
 
NOTE: The file OUTBOX is:E-Mail Access Device
 
Message sent
To: 'tom_rodd@hotmail.com'
Cc: 'tom_rodd@hotmail.com'
Bcc:
Subject: hello
Attachments:
NOTE: 1 record was written to the file OUTBOX.
The minimum record length was 5.
The maximum record length was 5.
NOTE: DATA statement used (Total process time):
real time 0.05 seconds
cpu time 0.01 seconds
 
 

Accepted Solutions
Solution
‎02-12-2017 02:49 PM
Super User
Posts: 6,956

Re: Send email from within SAS

SAS needs to be configured to use a working SMTP server. See http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a002592353.htm

And the server must tolerate sending your email. SMTP servers are often restricted in which sources may send emails to which targets (to prevent being abused for spamming)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Solution
‎02-12-2017 02:49 PM
Super User
Posts: 6,956

Re: Send email from within SAS

SAS needs to be configured to use a working SMTP server. See http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a002592353.htm

And the server must tolerate sending your email. SMTP servers are often restricted in which sources may send emails to which targets (to prevent being abused for spamming)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super Contributor
Super Contributor
Posts: 440

Re: Send email from within SAS

thanks Kurt

i have this studio version that runs on a virtual box so i guess there s nothing i can do about the configuration

 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 151 views
  • 0 likes
  • 2 in conversation