Desktop productivity for business analysts and programmers

Doesn't send mail automatically

Reply
Occasional Contributor
Posts: 13

Doesn't send mail automatically

Hi All,

 

I have a wierd issue now.

 

I was able to send the maxdate value from the dataset to lotus notes which is configured in our environment and I am getting the value from the below code to the mail body however it doesnt send the mail automatically. Mail just opens and stays I had to manually press the send button. Is there anything else I have to add in the code? I have attached the screenshot whcih is the output of the below code. How can I make sure it sends the mail automatically

 

I was able to 

 

DATA _null_;
SET WORK.Maxlendnetdate;
CALL SYMPUT('maxdate',put(MAX_of_DATE_OF_EFFECT, datetime8.));

run;

FILENAME outbox EMAIL ("xxxxx.xxx.");
DATA _NULL_;
FILE outbox
TO=("hari.kurupati@cba.com")
from = "xxx.com"

SUBJECT=("Lendnet &maxdate ");
PUT "On &maxdate ";

RUN;

 

 


output.jpg
Occasional Contributor
Posts: 8

Re: Doesn't send mail automatically

Hi,

 

Hope this link helps:

 

http://support.sas.com/kb/17/744.html

 

 

Occasional Contributor
Posts: 13

Re: Doesn't send mail automatically

Hi Sandykota,

 

thanks for the reply but seems that I do not have access to change th file however its asking me to save with diffrent name.


Regards,

Hari

Super User
Posts: 7,371

Re: Doesn't send mail automatically

Then you need to have it done by someone with administrator permissions.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
SAS Super FREQ
Posts: 703

Re: Doesn't send mail automatically

Depending on the SAS version you use, these options can also be set using the OPTIONS statements.

 

options
  emailhost="emailhost.a.b.c"
  emailsys=smtp
;

Give it a try.

Ask a Question
Discussion stats
  • 4 replies
  • 126 views
  • 0 likes
  • 4 in conversation