Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending e-mail from Enterprise Guide Program Mode

Status
Not open for further replies.

wphupkes

Technical User
Jul 1, 2008
22
NL
Hi all,

From Base 9.X, I didn't had any problem sending an e-mail (with attached PDF for example, created by ODS PDF). Now I'm using the program session from SAS Enterprise Guide, and I'll get the following error statement by executing the program as presented below:

NOTE: The file MAILBOX is:
E-Mail Access Device

ERROR: Email host ENTER_YOUR_SMTP_DOMAIN_HERE not found.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.31 seconds
cpu time 0.00 seconds



The SAS Code:

FILENAME mail EMAIL "wphupkes@gmail.com" ;

DATA _NULL_;
FILE mail
TO = ("&To_first" "&To_second")
CC = ("&CC_First")
BCC = ("&BCC_First")
SUBJECT="Report &Day_start - &Month_start - &Year_start until &Day_end - &Month_end - &Year_end"
ATTACH=("&Directory\Report &Day_start - &Month_start - &Year_start until &Day_end - &Month_end - &Year_end .pdf");
PUT "Dear <name>," //;
PUT "The SAS job in order to create this report ran on &sysdate ." ;
PUT "The reports (period &Day_start - &Month_start - &Year_start until &Day_end - &Month_end - &Year_end) are attached to this message." //;
PUT "If there are any questions or remarks, please respond to this e-mail."//;
PUT "With kind regards,";
PUT "Wouter Hupkes";
RUN;



But even with a small test code, the same error will appear:

FILENAME Mailbox EMAIL 'wouter.hupkes@gmail.nl'
Subject='Test Mail message';
DATA _NULL_;
FILE Mailbox;
PUT "Hello";
PUT "This is a message from the DATA step";
run;



Any change in settings (suggested by 'help' doesn't work). Do I really have to send mails as a step in a program? Is it not possible anymore to get the job done in de program mode?

Thanks in your answer in advance!

Business / Risk Analyst
wphupkes@gmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top