<?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: Multiple email attachments of different types in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578849#M164241</link>
    <description>&lt;P&gt;Are you running this locally on your PC or on a remote SAS server? If it is on your PC then it is likely you need additional settings to get email working. If you are running this on a remote SAS server then talk to your SAS administrator about the correct settings for emailing from SAS.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 23:32:58 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-08-02T23:32:58Z</dc:date>
    <item>
      <title>Multiple email attachments of different types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578743#M164186</link>
      <description>&lt;P&gt;I am attempting to use the ATTACH statement in an email with multiple attachments and the following error is returned:&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;rd = strip(put(&amp;amp;run_date,mmddyyd10.));&lt;BR /&gt;call symputx('rd',rd);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;filename mymail email "xxx.sas@xxx.com";&lt;BR /&gt;data _null_;&lt;BR /&gt;file mymail&lt;BR /&gt;From = ("developers.sas@xxx.com")&lt;BR /&gt;To = (myself@xxx.com)&lt;BR /&gt;&lt;BR /&gt;subject=(" Reports &amp;amp;rd");&lt;BR /&gt;attach=("\\xxx\Reports TOC &amp;amp;rd..xlsx"&amp;nbsp;"\\xxx\REC.xlsx" );&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log returns error 22 (syntax error saying it was expecting another operator and it fails. I also need to send several pdf files in the same email.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 15:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578743#M164186</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-08-02T15:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple email attachments of different types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578769#M164200</link>
      <description>&lt;P&gt;could you please try the below syntax of the code to send the attachments, this worked for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename outbox email
   to='xxxx.xxxx@xxxxx.com'
   type='text/html'
   subject='subject line'
   attach=('~path1/creat_bssa.csv' '~path2/creat_bssa.csv');

data _null_;
file outbox;
put 'Hi';
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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 16:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578769#M164200</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-02T16:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple email attachments of different types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578781#M164211</link>
      <description>&lt;P&gt;Now the code runs but no email appears.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 16:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578781#M164211</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2019-08-02T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple email attachments of different types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578849#M164241</link>
      <description>&lt;P&gt;Are you running this locally on your PC or on a remote SAS server? If it is on your PC then it is likely you need additional settings to get email working. If you are running this on a remote SAS server then talk to your SAS administrator about the correct settings for emailing from SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 23:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-email-attachments-of-different-types/m-p/578849#M164241</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-08-02T23:32:58Z</dc:date>
    </item>
  </channel>
</rss>

