<?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: Trying to email encrypted SAS document - ERROR: Unable to access E-mail attachments in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-email-encrypted-SAS-document-ERROR-Unable-to-access-E/m-p/514775#M138835</link>
    <description>&lt;P&gt;Why are you emailing something if it is sensitive enough to need encrypting?&amp;nbsp; Use the right tools for the job!&amp;nbsp; &amp;nbsp;If its sensitive then use a secure web portal or a secure ftp transfer.&amp;nbsp; Email is a dreadful means of data transfer in the best of circumstances, and really shouldn't be used for the transmital of data, especially sensitive data.&amp;nbsp; Next you will be telling me that you use zip + password in separate email, hilarious to think a hacker who can intercept 1 mail cant intercept the next.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 15:08:11 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-11-20T15:08:11Z</dc:date>
    <item>
      <title>Trying to email encrypted SAS document - ERROR: Unable to access E-mail attachments</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-email-encrypted-SAS-document-ERROR-Unable-to-access-E/m-p/514767#M138831</link>
      <description>&lt;P&gt;I am trying to send an email using emailsys=MAPI with a&amp;nbsp;SAS dataset attachment. Problem is that the&amp;nbsp;SAS dataset needs to be encrypted, therefore, SAS is unable to access the dataset to attach. The&amp;nbsp;SAS dataset was encrypted via SAS using encrypt=AES. I am using&amp;nbsp;SAS 9.4&amp;nbsp;located on my computer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am pretty sure the error is originating due to the encrypted dataset, since i tried attaching a non-encrypted SAS dataset and sending and was able to successfully do it without any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody know if it is possible to send an email through SAS with an encrypted sas document attached? If so, could you please share code. Currently, this is the code I have and it works as long as the SAS dataset is not encrypted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;emailsys&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=MAPI &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;emailhost&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=XXXXXXX.Enterprise.XXX.ds.XX.XX emailport=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;25&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; outmail &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;email&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"youremailadress@msn.com"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;attach&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"N:\FILEPATH\USAPHC_46.sas7bdat"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;subject&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"USAPHC Data is Ready"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; outmail;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'Hello,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'The SAS dataset you require is attached. Please let me know if you need anything further.'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'Thank you.'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Alternatively, I thought I could just sent an encrypted email and not encrypt the SAS dataset, but from what I read, SAS does not have the capability to encrypt an email. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Laurie&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 14:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-email-encrypted-SAS-document-ERROR-Unable-to-access-E/m-p/514767#M138831</guid>
      <dc:creator>Lauries12</dc:creator>
      <dc:date>2018-11-20T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to email encrypted SAS document - ERROR: Unable to access E-mail attachments</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-email-encrypted-SAS-document-ERROR-Unable-to-access-E/m-p/514775#M138835</link>
      <description>&lt;P&gt;Why are you emailing something if it is sensitive enough to need encrypting?&amp;nbsp; Use the right tools for the job!&amp;nbsp; &amp;nbsp;If its sensitive then use a secure web portal or a secure ftp transfer.&amp;nbsp; Email is a dreadful means of data transfer in the best of circumstances, and really shouldn't be used for the transmital of data, especially sensitive data.&amp;nbsp; Next you will be telling me that you use zip + password in separate email, hilarious to think a hacker who can intercept 1 mail cant intercept the next.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 15:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-email-encrypted-SAS-document-ERROR-Unable-to-access-E/m-p/514775#M138835</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-20T15:08:11Z</dc:date>
    </item>
  </channel>
</rss>

