BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
grezek
Obsidian | Level 7

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

1 ACCEPTED SOLUTION

Accepted Solutions
DaveHorne
SAS Employee

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.

View solution in original post

4 REPLIES 4
againreddy
Obsidian | Level 7

Please look at the below link if you are using outlook.

https://kb.amicusattorney.com/articles/568-Outlook-Prompt-to-Deny-or-Allow-Access

grezek
Obsidian | Level 7

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!

DaveHorne
SAS Employee

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.

grezek
Obsidian | Level 7

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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1337 views
  • 0 likes
  • 3 in conversation