<?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: An Email  from sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328371#M73321</link>
    <description>&lt;P&gt;Even if it's kinda old, I think this is still valid.&lt;/P&gt;
&lt;P&gt;Also, be aware of userid being used (authorization problems...?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/18/363.html" target="_blank"&gt;http://support.sas.com/kb/18/363.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2017 12:40:24 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-01-30T12:40:24Z</dc:date>
    <item>
      <title>An Email  from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328355#M73315</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I running below code from LSF(which run on Batchserver) :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code :-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;FILENAME mail EMAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp;TO=(" mXX.bi@XXXmail.com " &amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUBJECT="DAILY ADVANCES ABOVE 1 CRORE." CONTENT_TYPE="text/html";&lt;/P&gt;&lt;P&gt;&amp;nbsp; ODS LISTING CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ODS HTML BODY=mail;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC PRINT DATA=DAILY_ADVANCES_ABV_1CRORE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ODS HTML CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS LISTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it fails saying that&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Email:the connection was refused&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can You please guide me how to resolve this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 10:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328355#M73315</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2017-01-30T10:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: An Email  from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328371#M73321</link>
      <description>&lt;P&gt;Even if it's kinda old, I think this is still valid.&lt;/P&gt;
&lt;P&gt;Also, be aware of userid being used (authorization problems...?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/18/363.html" target="_blank"&gt;http://support.sas.com/kb/18/363.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328371#M73321</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-30T12:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: An Email  from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328381#M73323</link>
      <description>&lt;P&gt;Make sure you've set the EMAILHOST and EMAILSYS options, as well as any needed EMAILUSER/EMAILPW credentials (sometimes not needed).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Simple example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options 
  emailhost='mailserver.company.com' 
  emailsys=smtp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;More complex (this &lt;A href="http://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/" target="_self"&gt;is using GMail&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options emailhost=
 (
   "smtp.gmail.com" 
   /* alternate: port=487 SSL */
   port=587 STARTTLS 
   auth=plain 
   /* your Gmail address */
   id="your_address@gmail.com"
   /* optional: encode PW with PROC PWENCODE */
   pw="your_password" 
 )
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2017 13:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328381#M73323</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-01-30T13:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: An Email  from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328659#M73387</link>
      <description>&lt;P&gt;hI Chris ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank for ur reply.&lt;/P&gt;&lt;P&gt;Please tell me how to do this or which file should have this EMAIL host entry .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many Thanks in advance.......&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 07:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328659#M73387</guid>
      <dc:creator>MG18</dc:creator>
      <dc:date>2017-01-31T07:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: An Email  from sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328740#M73430</link>
      <description>&lt;P&gt;You should be able to add the OPTIONS statement at the start of your SAS program. &amp;nbsp;It might depend on your version of SAS -- I think in older versions the EMAILSYS and EMAILHOST options were "startup" options that need to go in a config file. &amp;nbsp;But in recent versions, these can go in your program on an OPTIONS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as the value to put in the EMAILHOST -- that information probably needs to come from your IT dept. &amp;nbsp;It needs to be an SMTP server that any e-mail client can access. &amp;nbsp;Depending on your setup, you might also need to supply credentials.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 14:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/An-Email-from-sas/m-p/328740#M73430</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-01-31T14:11:23Z</dc:date>
    </item>
  </channel>
</rss>

