The code:
filename mymail email "grezek@tcfbank.com"
subject="log 3.2 done";
data _null_;
file mymail;
put 'program has finished code 3.2';
run;
will send a message:
sas email a program is trying to send an e-mail message on your behalf...
which require an "allow" or "deny" response. How do I avoid this delay -- what parameter/option can I set to remove message?
Thanks in advance
To bypass your local email client (i.e. Outlook) you can direct SAS to use SMTP: https://support.sas.com/kb/19/767.html
Your IT folks can help with the emailhost and port details.
Please look at the below link if you are using outlook.
https://kb.amicusattorney.com/articles/568-Outlook-Prompt-to-Deny-or-Allow-Access
Thanks for the response. I can't find Amicus on my machine and I've ask IT what we might have that functions similarly. Thanks!
To bypass your local email client (i.e. Outlook) you can direct SAS to use SMTP: https://support.sas.com/kb/19/767.html
Your IT folks can help with the emailhost and port details.
Thank you; that works.
Phillip Turner of SASTech Support came back with:
===SMTP port 25 with no authentication===
options emailsys=smtp;
options emailhost=smtp.mail.com;
options emailport=25;
options emailauthprotocol=NONE;
options emailid="email@mail.com";
filename myemail EMAIL DEBUG
from="sender@mail.com"
sender="sender@mail.com"
to="receiver@email.com"
subject="Test";
attach="C:\folder\attachment.file";
data _null_;
file myemail;
put "Hello";
run;
filename myemail clear;
which allowed me to email -- also a way to embed some of the commands in the sasv9.cfg
) Add the correct SMTP options after the last current line in your sasv9.cfg file. For example:
-EMAILSYS smtp
-EMAILHOST "email.server.com"
-EMAILPORT 25
-EMAILAUTHPROTOCOL none
-EMAILID "sender@email.com"
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.