Usage Note 21133: Emailing output using ODS to the body of an email might look different when rendered with Microsoft Outlook 2007 and later versions
When using ODS HTML to send output from SAS® 9 to the body of an email, the style of the output might look very different when it is rendered with Microsoft Outlook 2007 and higher. This can occur because Outlook 2007 and higher does not fully support cascading style sheets (CSS) the same as Microsoft Internet Explorer or the previous verison of Outlook.
Beginning with Microsoft Outlook 2007, it has vastly changed in how it renders email. Instead of using Internet Explorers's HTML rendering, it uses the Microsoft Word 2007 HTML Viewer, which does not handle all of the CSS's the same way. If we select to have this opened and viewed in the browser from Outlook 2007, the style information such as the colors and the borders look fine.
To circumvent this problem using SAS 9, use either the ODS MSOffice2K or the ODS HTML3 destination instead of the ODS HTML destination. Each of the suggested destinations generate HTML, and will display much better in Word's HTML viewer. Click the Full Code tab to see an example.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.1 TS1M0 | |
Linux | 9.1 TS1M0 | |
OpenVMS Alpha | 9.1 TS1M0 | |
HP-UX IPF | 9.1 TS1M0 | |
64-bit Enabled Solaris | 9.1 TS1M0 | |
64-bit Enabled HP-UX | 9.1 TS1M0 | |
64-bit Enabled AIX | 9.1 TS1M0 | |
Microsoft Windows XP Professional | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
Tru64 UNIX | 9.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
/* The -EMAILSYS option needs to be set to SMTP along with the -EMAILHOST */
/* option with the value of your mail server. */
filename temp email to="someemail@sas.com"
content_type="text/html"
subject="Writing output to the body of e-mail";
ods msoffice2k file=temp;
proc print data=sashelp.class;
run;
ods msoffice2k close;
Date Modified: | 2008-09-30 11:27:24 |
Date Created: | 2007-10-12 13:06:02 |