<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Outlook Pop up when trying to send email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851074#M336351</link>
    <description>&lt;P&gt;Sending an email with SAS requires an SMTP server it appears you are using smtp.office365.com.&lt;BR /&gt;Have a look at this link&amp;nbsp;&lt;A href="https://www.msoutlook.info/question/883" target="_blank"&gt;https://www.msoutlook.info/question/883.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The information is a bit dated but may help. Use at your own risk.&lt;BR /&gt;You may as well follow what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has suggested. In that case the the google's smtp server is used.&lt;BR /&gt;You can explore the possibility of using your ISP's smtp service if available.&lt;BR /&gt;In a corporate environment, companies have their own smtp server and SAS can be and is used to send emails.&lt;BR /&gt;But from a personal laptop better to use outlook/Thunderbird or other client.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Dec 2022 18:54:05 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2022-12-25T18:54:05Z</dc:date>
    <item>
      <title>Outlook Pop up when trying to send email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851051#M336338</link>
      <description>&lt;P&gt;I finally purchased and installed Outlook on my personal machine.&amp;nbsp; Using SAS 9.4.&amp;nbsp; I am trying to task SAS to send emails automatically.&amp;nbsp; Each time, I am getting this pop-up from Outlook - which defeats the purpose.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-12-24 212204.jpg" style="width: 349px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78866i2E468F938D9A1E18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-12-24 212204.jpg" alt="Screenshot 2022-12-24 212204.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I choose Allow, it does send the email.&amp;nbsp; I went in to the Outlook trust center and changed the Programmatic Access Settings to "Never Warn Me about suspicious activity) but that had no impact, even after rebooting.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my current SAS code, but I have tried every SAS email code variation I could find within the SAS and Communities' forums with no luck.&amp;nbsp; Is this a programming issue, or something I need to change in my SAS config files, a hot-fix, or something outside of SAS (SAS dll file, SAS AddIn, Outlook, registry keys, anti-virus, Windows)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM 'CLEAR OUTPUT'; DM 'CLEAR LOG';
options emailhost=
 (
   "smtp.office365.com" 
   /* alternate: port=487 SSL */
   port=587 STARTTLS 
   auth=plain 
   /* your Gmail address */
   id="xxx@xxxxxxxxxxxxxx.com"
   /* optional: encode PW with PROC PWENCODE */
   pw="xxxxxxxxxxxxxx" 
 )
;

filename myemail email 
to="xxxxxxxxxxxxxx@gmail.com"
subject="Test";

data _null_;
file myemail;
put "Witty and insightful remarks";
run;

proc options group=email;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 04:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851051#M336338</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2022-12-25T04:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Outlook Pop up when trying to send email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851053#M336339</link>
      <description>&lt;P&gt;Googling for resources about sending mail via office365.com gets a lot less information than doing the same for gmail, which got me&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/" target="_blank" rel="noopener"&gt;this&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you can, try to use gmail as a mail backend.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 09:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851053#M336339</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-25T09:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Outlook Pop up when trying to send email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851074#M336351</link>
      <description>&lt;P&gt;Sending an email with SAS requires an SMTP server it appears you are using smtp.office365.com.&lt;BR /&gt;Have a look at this link&amp;nbsp;&lt;A href="https://www.msoutlook.info/question/883" target="_blank"&gt;https://www.msoutlook.info/question/883.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The information is a bit dated but may help. Use at your own risk.&lt;BR /&gt;You may as well follow what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has suggested. In that case the the google's smtp server is used.&lt;BR /&gt;You can explore the possibility of using your ISP's smtp service if available.&lt;BR /&gt;In a corporate environment, companies have their own smtp server and SAS can be and is used to send emails.&lt;BR /&gt;But from a personal laptop better to use outlook/Thunderbird or other client.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 18:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851074#M336351</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-12-25T18:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Outlook Pop up when trying to send email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851101#M336368</link>
      <description>&lt;P&gt;Thanks Sajid01.&amp;nbsp; That article has a lot of good tips. My AV software is valid, so its confusing as to why changing the Programmatic Access setting did not stop it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I successfully used one of the suggestions, editing the Registry Keys.&amp;nbsp; However, I used an abbreviated set which I found in this SAS Communities thread:&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192969" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192969&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, I created the following DWORDS in the&amp;nbsp;"HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16\outlook\security" and set the hexadecimal value to 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PromptSimpleMAPISend&lt;/P&gt;
&lt;P&gt;PromptSimpleMAPINameResolve&lt;/P&gt;
&lt;P&gt;PromptSimpleMAPIOpenMessage&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pop-up is off, so I don't need to approve.&amp;nbsp; The messages sit in the outbox for about a minute but are sent after a slight delay.&amp;nbsp; This may be the AV software scanning the emails.&amp;nbsp; I'll continue testing some of the other options to see which works the best.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 02:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outlook-Pop-up-when-trying-to-send-email/m-p/851101#M336368</guid>
      <dc:creator>texasmfp</dc:creator>
      <dc:date>2022-12-26T02:17:46Z</dc:date>
    </item>
  </channel>
</rss>

