<?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 emails with attachment from sas in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/427766#M27548</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186795"&gt;@PMNMatos&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do it work without the attachment ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, are you able to send email outside of SAS?&lt;/P&gt;
&lt;P&gt;Please use &lt;A href="http://support.sas.com/kb/18/363.html" target="_self"&gt;Usage Note 18363&lt;/A&gt;&amp;nbsp;(&lt;EM&gt;Troubleshooting guidelines for successfully sending an SMTP e-mail from SAS® software&lt;/EM&gt;) and let us know if that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then try to apply this one &lt;A href="http://support.sas.com/kb/19/767.html" target="_self"&gt;Usage Note 19767&lt;/A&gt;&amp;nbsp;(&lt;EM&gt;Using SAS® software to send SMTP email&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;It tells you the option you need to setup, etc. and gives you a sampel code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ovreall, &lt;A href="http://www2.sas.com/proceedings/forum2008/038-2008.pdf" target="_self"&gt;Sending E-mail from the DATA step&lt;/A&gt;&amp;nbsp;should help you if you can get the above 2 Notes to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 16:59:37 GMT</pubDate>
    <dc:creator>Damo</dc:creator>
    <dc:date>2018-01-15T16:59:37Z</dc:date>
    <item>
      <title>sending emails with attachment from sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/427736#M27545</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp; tryig to send an email directly froam SAS, but the system give me this message "ERROR: Email: Permission is denied."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mymail email "ABC@servidor.pt"
subject="Relatório P348"
from="ABC@servidor.pt"
to="ABC@servidor.pt"
attach="C:\Users\......\Abc.xlsx";

data _null_;
file mymail;
put Texto"; 
put "Texto."; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've already run this command:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I've obtained this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Operating System: WX64_SV .&lt;BR /&gt;Product expiration dates:&lt;BR /&gt;---Base SAS Software 29JUN2018&lt;BR /&gt;---SAS/STAT 29JUN2018&lt;BR /&gt;---SAS/GRAPH 29JUN2018&lt;BR /&gt;---SAS Integration Technologies 29JUN2018&lt;BR /&gt;---SAS/Secure 168-bit 29JUN2018&lt;BR /&gt;---SAS/Secure Windows 29JUN2018&lt;BR /&gt;---SAS Enterprise Guide 29JUN2018&lt;BR /&gt;---SAS/ACCESS Interface to PC Files 29JUN2018&lt;BR /&gt;---SAS/ACCESS Interface to ODBC 29JUN2018&lt;BR /&gt;---SAS Workspace Server for Local Access 29JUN2018&lt;BR /&gt;---High Performance Suite 29JUN2018&lt;BR /&gt;---SAS Add-in for Microsoft Excel 29JUN2018&lt;BR /&gt;---SAS Add-in for Microsoft Outlook 29JUN2018&lt;BR /&gt;---SAS Add-in for Microsoft PowerPoint 29JUN2018&lt;BR /&gt;---SAS Add-in for Microsoft Word 29JUN2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/427736#M27545</guid>
      <dc:creator>PMNMatos</dc:creator>
      <dc:date>2018-01-15T16:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: sending emails with attachment from sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/427766#M27548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186795"&gt;@PMNMatos&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do it work without the attachment ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, are you able to send email outside of SAS?&lt;/P&gt;
&lt;P&gt;Please use &lt;A href="http://support.sas.com/kb/18/363.html" target="_self"&gt;Usage Note 18363&lt;/A&gt;&amp;nbsp;(&lt;EM&gt;Troubleshooting guidelines for successfully sending an SMTP e-mail from SAS® software&lt;/EM&gt;) and let us know if that works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then try to apply this one &lt;A href="http://support.sas.com/kb/19/767.html" target="_self"&gt;Usage Note 19767&lt;/A&gt;&amp;nbsp;(&lt;EM&gt;Using SAS® software to send SMTP email&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;It tells you the option you need to setup, etc. and gives you a sampel code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ovreall, &lt;A href="http://www2.sas.com/proceedings/forum2008/038-2008.pdf" target="_self"&gt;Sending E-mail from the DATA step&lt;/A&gt;&amp;nbsp;should help you if you can get the above 2 Notes to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 16:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/427766#M27548</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2018-01-15T16:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: sending emails with attachment from sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429570#M27701</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I can send an e-mail from the DATA step.&lt;/P&gt;&lt;P&gt;I continue to have some issues with the program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429570#M27701</guid>
      <dc:creator>PMNMatos</dc:creator>
      <dc:date>2018-01-22T09:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: sending emails with attachment from sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429572#M27702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186795"&gt;@PMNMatos&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't you use the DATA step to send email then?&lt;/P&gt;
&lt;P&gt;What is your constraint?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Damo&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429572#M27702</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2018-01-22T09:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: sending emails with attachment from sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429574#M27703</link>
      <description>&lt;P&gt;Hi Damo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No. Now I don't have any problem sending de e-mail from data step. It's working perfetly.&lt;/P&gt;&lt;P&gt;But I&amp;nbsp;can't send the email&amp;nbsp;with the code I write above. Do you have any idea to solve the problem? (it is no very importante... just curiosity).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pedro&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429574#M27703</guid>
      <dc:creator>PMNMatos</dc:creator>
      <dc:date>2018-01-22T09:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: sending emails with attachment from sas</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429575#M27704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186795"&gt;@PMNMatos&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great, so you have a solution, that's the main point.&lt;/P&gt;
&lt;P&gt;Can you send us the 2 logs files (when it works and the one related to your original program) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Damien&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sending-emails-with-attachment-from-sas/m-p/429575#M27704</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2018-01-22T09:52:01Z</dc:date>
    </item>
  </channel>
</rss>

