Hi,
I am wondering if someone could provide help... Now we are using SMTP to send emails and we noticed that user can send email on behalf of somebody else using SAS servers with Display Manager and Enterprise Guide.
Code example:
* Automatic Parameters:
*;
%let email_to ="pdupuis@cihi.ca" ;
%let email_from ="Mickey Mouse <MickeyMouse@cihi.ca>";
%let email_cc ="Mini Mouse <MickeyMouse@cihi.ca>";
* Step: Sending log via email:
*;
%macro SendEmail;
filename outbox email "null" emailsys=smtp from=(&email_from.);
data _null_;
file outbox
to=(&email_to.)
cc=(&email_cc.)
subject="Test email"
lrecl=256;
put " ";
put "Hi,";
put " ";
put "This is a test email.";
put " ";
put " ";
run;
run;
%mend;
%SendEmail
We wish to enabled the SMTP authentication but because of our security rules we cannot allow our SAS users to have their password save in their SAS program even though it is encoded using "pwencode" or save using macro variable under a personal location.
I asked TS and apparently the only secure way is to use "pwencode" to save the password. Does anyone figured a way?
Thanks.
Pierre.