<?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: What is sas macro code for sending emails through SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192778#M266228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run this above macro code, it gives following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Email: The connection was refused&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 17:08:48 GMT</pubDate>
    <dc:creator>dkanand86</dc:creator>
    <dc:date>2015-01-22T17:08:48Z</dc:date>
    <item>
      <title>What is sas macro code for sending emails through SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192775#M266225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I urgently require a generic sas macro code for sending emails through SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide code and possible solutions to this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192775#M266225</guid>
      <dc:creator>dkanand86</dc:creator>
      <dc:date>2015-01-22T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is sas macro code for sending emails through SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192776#M266226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002058232.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002058232.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192776#M266226</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-01-22T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is sas macro code for sending emails through SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192777#M266227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Google -&amp;gt; SAS Email&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi29/178-29.pdf" title="http://www2.sas.com/proceedings/sugi29/178-29.pdf"&gt;http://www2.sas.com/proceedings/sugi29/178-29.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Top result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192777#M266227</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-01-22T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is sas macro code for sending emails through SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192778#M266228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run this above macro code, it gives following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Email: The connection was refused&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 17:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192778#M266228</guid>
      <dc:creator>dkanand86</dc:creator>
      <dc:date>2015-01-22T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is sas macro code for sending emails through SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192779#M266229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to configure SAS with a valid email system so that it can actually work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3 style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; padding-top: 0.7em; background-color: #ffffff;"&gt;&lt;A name="a002302753" style="margin: 1em 0 0; font-family: inherit;"&gt;Example of Sending E-Mail Using SMTP&lt;/A&gt;&lt;/H3&gt;&lt;P style="margin: 1.4em 0 0; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;&lt;A name="a002756288" style="font-family: inherit;"&gt;&lt;/A&gt;The following examples show how you can send e-mail by using SMTP from a DATA step and how you can send your ODS HTML output as HTML and not as an attachment to your e-mail.&lt;/P&gt;&lt;P style="margin: 1.4em 0 0; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;&lt;A name="a002756289" style="font-family: inherit;"&gt;&lt;/A&gt;To use SMTP you need an SMTP e-mail server that you can access.&lt;/P&gt;&lt;P style="margin: 1.4em 0 0; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;&lt;A name="a002756290" style="font-family: inherit;"&gt;&lt;/A&gt;To configure SAS to use SMTP, add these system options to your configuration file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="margin: 1.4em 0 0;"&gt;&lt;A name="a002756291" style="font-family: inherit;"&gt; &lt;/A&gt;-emailsys SMTP&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="margin: 1.4em 0 0;"&gt;&lt;A name="a002756292" style="font-family: inherit;"&gt; &lt;/A&gt;-emailhost &lt;SPAN class="emph" style="font-style: italic;"&gt;your.email.server.com&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="margin: 1.4em 0 0;"&gt;&lt;A name="a002756293" style="font-family: inherit;"&gt; &lt;/A&gt;-emailport 25.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 1.4em 0 0; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;&lt;A name="a002756294" style="font-family: inherit;"&gt;&lt;/A&gt;Ask your system administrator for the location of &lt;SPAN class="emph" style="font-style: italic;"&gt;your.email.server.com&lt;/SPAN&gt;. Port 25 is the most common port.&lt;/P&gt;&lt;P style="margin: 1.4em 0 0; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;&lt;A name="a002756295" style="font-family: inherit;"&gt;&lt;/A&gt;The following code uses the FILENAME statement and a DATA step to send e-mail:&lt;/P&gt;&lt;PRE style="padding: 1.4em 0 0 12px; font-size: 12px; font-family: monospace; color: #333333;"&gt;
&lt;P&gt;&lt;A name="a002302757" style="font-family: inherit;"&gt;&lt;/A&gt;&lt;SPAN&gt;filename mymail email from="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:yourid@email.com"&gt;yourid@email.com&lt;/A&gt;&lt;SPAN&gt;" to="id1@.emailaddr.com" "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:id2@emailaddr.com"&gt;id2@emailaddr.com&lt;/A&gt;&lt;SPAN&gt;") subject="Put Subject Here" content_type="text/html"; data _null_; file mymail; put 'hello world'; run; quit;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#sassession.htm#usingemail"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#sassession.htm#usingemail&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 17:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-sas-macro-code-for-sending-emails-through-SAS/m-p/192779#M266229</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-01-22T17:14:54Z</dc:date>
    </item>
  </channel>
</rss>

