10-09-2015 08:37 AM - edited 10-09-2015 08:38 AM
I am trying to send a mail using SAS 9.3 using the below statements:
filename mymail email Tofirstname.lastname@example.org' subject='Connection Status';
When I run it, I get an outlook prompt to allow/deny the sending of mail followed with an error in log:-
ERROR: Undetermined I/O failure.
how to get rid of this error and the warning?
10-09-2015 09:32 AM
Hmm, undetermined I/O errors are hard. Your code works for me, running 9.3 on Win 7:
1 filename mymail email Toemail@example.com' subject='Test email'; 2 data _null_; 3 file mymail; 4 put "hi"; 5 run; NOTE: The file MYMAIL is: E-Mail Access Device Message sent To: firstname.lastname@example.org Cc: Bcc: Subject: Test email Attachments: NOTE: 1 record was written to the file MYMAIL. The minimum record length was 2. The maximum record length was 2.
Maybe you should check your email options, e.g. emailhost, emailsys, etc. Mine look like:
6 %put %sysfunc(getoption(emailhost)); LOCALHOST 7 %put %sysfunc(getoption(emailsys)); MAP
10-12-2015 08:23 AM