Help using Base SAS procedures

How to send emails automatically from SAS

Accepted Solution Solved
Reply
N/A
Posts: 1
Accepted Solution

How to send emails automatically from SAS

Hi all,

I'm actually using :

-SAS 9.2,

-IBM Lotus iNotes 8.5.3 FP4.

And I'm attempting to send an email, first by making a test, with the following code :

/*Beginning of the program*/

options emailhost="10.XXX.XXX.XX" emailid="employeeId" emailpw="mypassword" emailsys="MAPI";

FILENAME mymail EMAIL
    To= 'firstname.lastname@mycompany.com'   
    SUBJECT="This is a test" ;

DATA _null_;
    FILE mymail;
    PUT "Good Morning.";
    PUT " " ;

    PUT "This is a test." ;
RUN;

/*The END*/

My problems are :

-If my mailbox has not been opened yet, I am blocked on the login page.

-If my mailbox has already been opened, the email is created but not sent.

Since yesterday, i have tryed all that have found on internet :

-to modify sasv9.cfg (but {options emailhost="10.XXX.XXX.XX" emailid="employeeId" emailpw="mypassword" emailsys="MAPI";} in the SAS program makes the same),

-to put !EM_SEND! in the DATA step,

-... ,

but nothing makes my email automatically sent.

Thanks for any advice with this.

Sam Q.


Accepted Solutions
Solution
‎06-19-2014 05:48 AM
Super User
Posts: 5,429

Re: How to send emails automatically from SAS

SAS is sending emails through API, and not via client SW, so I don't understand what you mean by that your mail box is open or not?

Be sure that you emailhost host address points to the email server host.

Since this seems to be a connection problem, rather than a SAS one, I suggest that you start talk to the Lotus Notes admin people about your issue.

Data never sleeps

View solution in original post


All Replies
Solution
‎06-19-2014 05:48 AM
Super User
Posts: 5,429

Re: How to send emails automatically from SAS

SAS is sending emails through API, and not via client SW, so I don't understand what you mean by that your mail box is open or not?

Be sure that you emailhost host address points to the email server host.

Since this seems to be a connection problem, rather than a SAS one, I suggest that you start talk to the Lotus Notes admin people about your issue.

Data never sleeps
🔒 This topic is solved and locked.

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

Discussion stats
  • 1 reply
  • 299 views
  • 1 like
  • 2 in conversation