05-25-2015 04:37 PM
The following works perfectly except it is not attaching excel file. When this code runs, it is sending email notification but no attachment in the email notification. I tried the different file and format (txt) for attachment but still not working.
FILENAME OUTBOX EMAIL;
SUBJECT = "Status : Macro"
FROM = "firstname.lastname@example.org"
TYPE = 'TEXT/PLAIN'
TO = ("email@example.com")
PUT "Check logfile to see whether there is any error";
05-25-2015 06:05 PM
Interesting - for both SAS Windows and SAS z/OS (IBM mainframe), I use a remote "SMTP mail server" although my ATTACH=(....) file is local to the system where SAS is executing. Does that jive with your experience, Cynthia?
05-25-2015 08:04 PM
Ah, I don't use a remote SMTP server. I suppose it is possible for it to work differently...About ATTACHE=, the doc says only that "The physical name is the name that is recognized by the operating environment."