<?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: Sending Email with SAS 9.3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92980#M19621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Billd, Could be with 9.4.&amp;nbsp; You also are getting SAS/secure with that, no dedicated license anymore.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64789/HTML/default/viewer.htm#p1v9dr6zep9p9en1prhl6tdy3igx.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64789/HTML/default/viewer.htm#p1v9dr6zep9p9en1prhl6tdy3igx.htm"&gt;SAS(R) 9.4 System Options: Reference&lt;/A&gt; (EMAILHOST= System Option) ssl is mentioned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Jul 2013 12:56:33 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2013-07-28T12:56:33Z</dc:date>
    <item>
      <title>Sending Email with SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92977#M19618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to send email from a data step using SAS 9.3.&amp;nbsp; I believe that I can configure my email client in an options statement.&amp;nbsp; However, when I do so and attempt to send myself a test email, I get the following error message: "ERROR: Email: The connection was reset by a peer."&amp;nbsp; Note I'm running Windows 7 (64 bit) and want to send the email using the smtp protocol.&amp;nbsp; Here's my code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options emailsys=smtp emailid="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xxxxxxx@sbcglobal.net"&gt;xxxxxxx@sbcglobal.net&lt;/A&gt;&lt;SPAN&gt;" emailpw="xxxxxxx" emailhost=outbound.att.net&amp;nbsp; emailport=465;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename mymail email "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xxxxxxx@sbcglobal.net"&gt;xxxxxxx@sbcglobal.net&lt;/A&gt;&lt;SPAN&gt;" subject="test message" lrecl=256;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mymail;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'hello there';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any errors in the above?&amp;nbsp; Also, here's the link to the ATT smtp settings.&amp;nbsp; At the top of the page they state that if you setup your email account after June 2011 you can't use an email client.&amp;nbsp; I setup my account several years ago, so I don't think that's the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.att.com/esupport/article.jsp?sid=KB401570&amp;amp;cv=801#fbid=jgUZ2OfvIqI" title="http://www.att.com/esupport/article.jsp?sid=KB401570&amp;amp;cv=801#fbid=jgUZ2OfvIqI"&gt; Email server settings (POP and SMTP) - AT&amp;amp;T&amp;nbsp; DSL High Speed Support&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or advice would be greatly appreciated!&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 07:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92977#M19618</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2013-07-28T07:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email with SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92978#M19619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See:&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol" title="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol"&gt;Simple Mail Transfer Protocol - Wikipedia, the free encyclopedia&lt;/A&gt;&amp;nbsp; The SMTP protocol is missing by design login and encryption. &lt;BR /&gt;AT&amp;amp;T is mentioning secured SMTP (SSL) something we are missing at SAS docs&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64789/HTML/default/viewer.htm#n1hvusly6stc7an16p23om7xfem7.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64789/HTML/default/viewer.htm#n1hvusly6stc7an16p23om7xfem7.htm"&gt;SAS(R) 9.4 System Options: Reference&lt;/A&gt; (EMAILAUTHPROTOCOL= System Option) may be this one is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other is that SMTP is well known to send mail MAPI also a good approach is the default protoc at Windows&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/64812/HTML/default/viewer.htm#n1dvonnwsdm9w9n1xykm8s99j32c.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/64812/HTML/default/viewer.htm#n1dvonnwsdm9w9n1xykm8s99j32c.htm"&gt;SAS(R) 9.4 Companion for Windows&lt;/A&gt; (EMAILSYS System Option: Windows)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some sample/notes&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings13/023-2013.pdf" title="http://support.sas.com/resources/papers/proceedings13/023-2013.pdf"&gt;http://support.sas.com/resources/papers/proceedings13/023-2013.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 11:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92978#M19619</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-07-28T11:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email with SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92979#M19620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaap - Thanks for the references.&amp;nbsp; Much appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to send an email with SAS!&amp;nbsp; Out of frustration I went through all the web email accounts that I have and surprisingly the only that worked was AOL. Here's the code that I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options emailsys=smtp emailauthprotocol=login emailid="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xxxxx@aol.com"&gt;xxxxx@aol.com&lt;/A&gt;&lt;SPAN&gt;" emailpw="xxxxxx" emailhost=smtp.aol.com&amp;nbsp; emailport=587;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename mymail email "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:xxxxxx@sbcglobal.net"&gt;xxxxxx@sbcglobal.net&lt;/A&gt;&lt;SPAN&gt;" subject="Test" lrecl=256;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file mymail;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put 'Hello!';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note I tried to use code above to send email from my sbcglobal (ATT) account.&amp;nbsp; Tried all sorts of server/port combinations as well as specifying emailauthprotocol = login and plain. Nothing worked.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This is probably because as Jaap pointed out (thanks again) ATT requires SSL.&amp;nbsp; Therefore, I believe my SAS code was fine.&amp;nbsp; It doesn't seem possible to send email with ATT right now.&amp;nbsp; Perhaps in SAS 9.4, we'll be able to send email the SSL protocol.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 11:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92979#M19620</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2013-07-28T11:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email with SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92980#M19621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Billd, Could be with 9.4.&amp;nbsp; You also are getting SAS/secure with that, no dedicated license anymore.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64789/HTML/default/viewer.htm#p1v9dr6zep9p9en1prhl6tdy3igx.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64789/HTML/default/viewer.htm#p1v9dr6zep9p9en1prhl6tdy3igx.htm"&gt;SAS(R) 9.4 System Options: Reference&lt;/A&gt; (EMAILHOST= System Option) ssl is mentioned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 12:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-Email-with-SAS-9-3/m-p/92980#M19621</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-07-28T12:56:33Z</dc:date>
    </item>
  </channel>
</rss>

