<?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: Problem sending Windows shortcut's via email in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6669#M2601</link>
    <description>Try adding content_type to the attach= options.  I believe that the shortcut (.lnk) is actually a binary file.  I've had success in the past referring to binary files as image files.  So try something like:&lt;BR /&gt;
filename SendMail email to=(&amp;amp;macvar.)&lt;BR /&gt;
subject="SAS Processing : Duplicate Party Records Report"&lt;BR /&gt;
attach=("\\svrbu3file\shared\public\Inf_Mgt\Projects\Data Quality\Reporting\Exception Reports\Shortcut to Issue 158 - Duplicate party records.xls.lnk" content_type="IMAGE/GIF")&lt;BR /&gt;
type='Text/Html' ;</description>
    <pubDate>Thu, 31 Jan 2008 14:13:12 GMT</pubDate>
    <dc:creator>advoss</dc:creator>
    <dc:date>2008-01-31T14:13:12Z</dc:date>
    <item>
      <title>Problem sending Windows shortcut's via email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6668#M2600</link>
      <description>Hi everyone, we use email to send reports to people and because of the size of some of them we are looking to instead send out a shorcut to the file. The below code is a snippet of what we use to send a file out which I've changed to attach a windows shortcut, but, while it attaches the file the shortcut doesn't work. When I did a properties on the attachment it is only 551 bytes, if I manually attach the same shortcut to an email the attachment is 1153 bytes. Has anyone come across this problem before, and more importantly, know what is wrong? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
	filename SendMail email to=(&amp;amp;macvar.)&lt;BR /&gt;
	  subject="SAS Processing : Duplicate Party Records Report"&lt;BR /&gt;
	  attach=("\\svrbu3file\shared\public\Inf_Mgt\Projects\Data Quality\Reporting\Exception Reports\Shortcut to Issue 158 - Duplicate party records.xls.lnk")&lt;BR /&gt;
	  type='Text/Html' ;&lt;BR /&gt;
&lt;BR /&gt;
	ods html&lt;BR /&gt;
	  style=SasWeb&lt;BR /&gt;
	  body=SendMail&lt;BR /&gt;
	  rs=none;</description>
      <pubDate>Thu, 31 Jan 2008 03:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6668#M2600</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-31T03:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending Windows shortcut's via email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6669#M2601</link>
      <description>Try adding content_type to the attach= options.  I believe that the shortcut (.lnk) is actually a binary file.  I've had success in the past referring to binary files as image files.  So try something like:&lt;BR /&gt;
filename SendMail email to=(&amp;amp;macvar.)&lt;BR /&gt;
subject="SAS Processing : Duplicate Party Records Report"&lt;BR /&gt;
attach=("\\svrbu3file\shared\public\Inf_Mgt\Projects\Data Quality\Reporting\Exception Reports\Shortcut to Issue 158 - Duplicate party records.xls.lnk" content_type="IMAGE/GIF")&lt;BR /&gt;
type='Text/Html' ;</description>
      <pubDate>Thu, 31 Jan 2008 14:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6669#M2601</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2008-01-31T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending Windows shortcut's via email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6670#M2602</link>
      <description>Rather than attach a file or shortcut, I build a hot link into the email message.  Code below.&lt;BR /&gt;
&lt;BR /&gt;
filename mail email ' '                                                                                                                                                                                                                                         &lt;BR /&gt;
 from=("me@company.ca")                                                                                                                                                                                                                                         &lt;BR /&gt;
 to=("you@company.ca")                                                                                                                                                                                                                                          &lt;BR /&gt;
  subject="Sales Report for %sysfunc(datetime(),datetime13.)";                                                                                                                                                                                                  &lt;BR /&gt;
                                                                                                                                                                                                                                                                &lt;BR /&gt;
data _null_;                                                                                                                                                                                                                                                    &lt;BR /&gt;
                                                                                                                                                                                                                                                                &lt;BR /&gt;
file mail;                                                                                                                                                                                                                                                      &lt;BR /&gt;
                                                                                                                                                                                                                                                                &lt;BR /&gt;
put "auto email report, brought to you by SAS®";                                                                                                     &lt;BR /&gt;
put " ";                                                                                                 &lt;BR /&gt;
put "Double click on the link below to view or print";                                                                                                              &lt;BR /&gt;
put " ";                                                                                                              &lt;BR /&gt;
put "\\Drive\Directory\SubDirectory\SalesReport.pdf";                                            &lt;BR /&gt;
put " "; &lt;BR /&gt;
                                                                                                             run;

Message was edited by: Bill</description>
      <pubDate>Thu, 31 Jan 2008 17:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6670#M2602</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-01-31T17:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending Windows shortcut's via email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6671#M2603</link>
      <description>Advoss : that fixed the problem. Thanks.  &lt;BR /&gt;
&lt;BR /&gt;
Bill : Originally I was going to use hotlinks but it didn't like spaces in the filename or path, it would end the link at the character before the space. I was using :&lt;BR /&gt;
&lt;BR /&gt;
a href="file:\\svrbu3file\shared\public\Inf_Mgt\Projects\Data Quality\Reporting\Exception Reports\Issue 158 - Duplicate party records.xls"&amp;gt;&lt;B&gt;S:\public\Inf_Mgt\Projects\Data Quality\Reporting\Exception Reports\Issue 158 - Duplicate party records.xls&lt;/B&gt;';&lt;BR /&gt;
  &lt;BR /&gt;
Output;</description>
      <pubDate>Thu, 31 Jan 2008 23:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6671#M2603</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-31T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending Windows shortcut's via email</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6672#M2604</link>
      <description>If there are blanks in the string, you can fill them with %20, e.g. Issue 158 becomes Issue%20158.</description>
      <pubDate>Mon, 04 Feb 2008 14:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Problem-sending-Windows-shortcut-s-via-email/m-p/6672#M2604</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-02-04T14:12:17Z</dc:date>
    </item>
  </channel>
</rss>

