<?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: Sas emails connection refused in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357485#M274253</link>
    <description>&lt;P&gt;When sending mail though a&amp;nbsp;provider like Office 365, you probably need to provide some additional authentication and maybe even configure your e-mail provider to allow such programmatic access. &amp;nbsp;After all, you don't want just anyone with your e-mail address and knowledge of a port number to be able to send e-mail on your behalf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/" target="_self"&gt;See this blog post for what's required&lt;/A&gt;. &amp;nbsp;It specifically talks about Gmail, but the same protocols are probably in place for any tier-1 cloud-based email provider.&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 14:11:43 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2017-05-10T14:11:43Z</dc:date>
    <item>
      <title>Sas emails connection refused</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357317#M274249</link>
      <description>&lt;P&gt;I am running Windows Server on an Amazon virtual desktop (AWS). &amp;nbsp;64 bit dual processors. &amp;nbsp;SAS 64 bit windows server edition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to send emails automatically from sas code. &amp;nbsp;I have it setup for SMTP. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the error message connection refused. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just trying to execute a simple example as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;options emailsys=SMTP emailid='daniel.parry@trudecision.com';&lt;BR /&gt;filename mailbox email;&lt;BR /&gt;data _null_;&lt;BR /&gt;file mailbox to='daniel.parry@praxis-llc.com' subject='MAPI test';&lt;BR /&gt;put "Hi";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;email settings in sas set to smtp, localhost, port 25, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have researched this extensively. &amp;nbsp;I went into my windows registry and there are no software policies set up for outlook, and I don't get a pop up that says another program is trying to send an email. &amp;nbsp;Just that the connection was refused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 21:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357317#M274249</guid>
      <dc:creator>dapstat</dc:creator>
      <dc:date>2017-05-09T21:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sas emails connection refused</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357321#M274250</link>
      <description>&lt;P&gt;You might post the exact message, screen capture or if there is any message in the SAS log post that as well along with the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to guess this ends up involving who/what has permissions where.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 22:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357321#M274250</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-05-09T22:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sas emails connection refused</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357329#M274251</link>
      <description>&lt;P&gt;If you have console access to the Windows server, can you try using &lt;A href="https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/send-mailmessage" target="_self"&gt;the Send-MailMessage command&lt;/A&gt; in a PowerShell window? &amp;nbsp;That might tell you whether the system is set up for SMTP mail properly to begin with. &amp;nbsp;If you get that working, then you know it's possible to get it working in SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 22:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357329#M274251</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-05-09T22:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sas emails connection refused</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357435#M274252</link>
      <description>&lt;P&gt;I had the same problem when I was running desktop sas on my own personal laptop. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a virtual desktop in the cloud. &amp;nbsp;There is no company, just me as an independent consultant, so no over-arching IT security interference. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are no software policies in the windows registry. &amp;nbsp;I'm using microsoft outlook, and it is set as the default program. &amp;nbsp;My email is through godaddy, hosted by office365 (outlook.office365.com). &amp;nbsp;I've gone to the settings for my email server with godaddy and outlook365, and there's nothing on the admin page that restricts. &amp;nbsp;I'm not getting a popup that tells me another program is trying to send email. &amp;nbsp;I saw another post that said don't use port 25, use port 2525. &amp;nbsp;I tried both. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching my screenshots. &amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13808i8DC76D5586F98E69/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas error log window.png" title="sas error log window.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13809i101B544D136B5DF9/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas log startup.png" title="sas log startup.png" /&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13810iF886AA60A10401B1/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas options email settings.png" title="sas options email settings.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13811i3642EF2E7BE1D151/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas program window.png" title="sas program window.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13812i6E7C6B6852981067/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="windows computer settings.png" title="windows computer settings.png" /&gt;</description>
      <pubDate>Wed, 10 May 2017 12:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357435#M274252</guid>
      <dc:creator>dapstat</dc:creator>
      <dc:date>2017-05-10T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sas emails connection refused</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357485#M274253</link>
      <description>&lt;P&gt;When sending mail though a&amp;nbsp;provider like Office 365, you probably need to provide some additional authentication and maybe even configure your e-mail provider to allow such programmatic access. &amp;nbsp;After all, you don't want just anyone with your e-mail address and knowledge of a port number to be able to send e-mail on your behalf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/" target="_self"&gt;See this blog post for what's required&lt;/A&gt;. &amp;nbsp;It specifically talks about Gmail, but the same protocols are probably in place for any tier-1 cloud-based email provider.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 14:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357485#M274253</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-05-10T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sas emails connection refused</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357585#M274254</link>
      <description>&lt;P&gt;Ok, so I have made progress on this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set up a gmail account, and downloaded a free email program (thunderbird). &amp;nbsp;I setup my new gmail on my virtual machine using thunderbird.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed thunderbird to default email. &amp;nbsp; Ran my sas email, and it worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set up my domain on godaddy, and subscribe to office365 exchange. &amp;nbsp;I can set another email up on my company's domain but not run it through office365 (let google host my email). &amp;nbsp;That should solve my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will post back with results.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 17:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-emails-connection-refused/m-p/357585#M274254</guid>
      <dc:creator>dapstat</dc:creator>
      <dc:date>2017-05-10T17:21:55Z</dc:date>
    </item>
  </channel>
</rss>

