<?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 Email error in SAS 9.3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229266#M41476</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to send a mail using SAS 9.3 using the below statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename mymail email To='abc@gmail.com' subject='Connection Status';&lt;BR /&gt;data _null_;&lt;BR /&gt; file mymail;&lt;BR /&gt;put "hi";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run it, I get an outlook prompt to allow/deny the sending of mail followed with an error in log:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Undetermined I/O failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to get rid of this error and the warning?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 12:38:22 GMT</pubDate>
    <dc:creator>Arjumand</dc:creator>
    <dc:date>2015-10-09T12:38:22Z</dc:date>
    <item>
      <title>Email error in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229266#M41476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to send a mail using SAS 9.3 using the below statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename mymail email To='abc@gmail.com' subject='Connection Status';&lt;BR /&gt;data _null_;&lt;BR /&gt; file mymail;&lt;BR /&gt;put "hi";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run it, I get an outlook prompt to allow/deny the sending of mail followed with an error in log:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Undetermined I/O failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how to get rid of this error and the warning?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 12:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229266#M41476</guid>
      <dc:creator>Arjumand</dc:creator>
      <dc:date>2015-10-09T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Email error in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229281#M41483</link>
      <description>&lt;P&gt;Hmm, undetermined I/O errors are hard.&amp;nbsp;&amp;nbsp; Your code works for me, running 9.3 on Win 7:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1    filename mymail email To='someone@gmail.com' subject='Test email';
2    data _null_;
3     file mymail;
4    put "hi";
5    run;

NOTE: The file MYMAIL is:
      E-Mail Access Device

Message sent
      To:          someone@gmail.com
      Cc:
      Bcc:
      Subject:     Test email
      Attachments:
NOTE: 1 record was written to the file MYMAIL.
      The minimum record length was 2.
      The maximum record length was 2.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you&amp;nbsp;should check your email options, e.g. emailhost, emailsys, etc.&amp;nbsp; Mine look like:&lt;/P&gt;&lt;PRE&gt;6    %put %sysfunc(getoption(emailhost));
LOCALHOST
7    %put %sysfunc(getoption(emailsys));
MAP&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Oct 2015 13:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229281#M41483</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-10-09T13:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Email error in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229500#M41539</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin﻿&lt;/a&gt;: This is what i get:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;51 data _null_;&lt;BR /&gt;52 %put %sysfunc(getoption(emailhost));&lt;BR /&gt;LOCALHOST&lt;BR /&gt;53 %put %sysfunc(getoption(emailsys));&lt;BR /&gt;MAPI&lt;BR /&gt;54 run;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 07:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229500#M41539</guid>
      <dc:creator>Arjumand</dc:creator>
      <dc:date>2015-10-12T07:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Email error in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229530#M41551</link>
      <description>I would suggest working with tech support. They should be able to dig into what may cause the undetermined I/O failure. Your code works for me, and sounds like it works for you, at least as far as SAS telling outlook "Please send and email," and then something breaks.</description>
      <pubDate>Mon, 12 Oct 2015 12:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Email-error-in-SAS-9-3/m-p/229530#M41551</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-10-12T12:23:57Z</dc:date>
    </item>
  </channel>
</rss>

