LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 5 Oct 2006 14:22:07 -0700
Reply-To:   David L Cassell <davidlcassell@MSN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   David L Cassell <davidlcassell@MSN.COM>
Subject:   Re: highlight one character or line in output file via smtp
In-Reply-To:   <4oked8Ff7lgfU1@individual.net>
Content-Type:   text/plain; format=flowed

tucks@MATON.CHA wrote: > >is there a simple way to colorize a phrase or line in an output file that >is be output >via smtp ? > >perhaps something like an XML formatting command to make certain values >stand out in >the output file? > >pseudocode: > >filename smtp to="a@b.com" subject="stuff" > >data _null_;set somethingveryimportant; file smtp; >if somevalue > 9999 then do; > put <xml formatting here> the datalines

Unfortunately, Chris is dead on.

If you fire email of to an SMTP server, it has to know the type of mail you are sending. If oyu pass it anything other than 'text/html' you are at risk of needing to do a lot more than send a text memo to the SMTP server, because you would need to attach the file with this markup in it, and tell your SMTP server that you are moving up to the MIME specification for handling non-text attachments. (Yes, things like XML and HTML count as non-text, even if they are all text characters.)

Then, as if things were not annoying enough, not all SMTP servers handle MIME attachments properly, and not all MUAs (Mail User Agents - the email readers at the other end) will handle the attachment correctly. The default mail reader in Solaris, MailTool, has been known to have trouble with multiple components in a single MIME envelope, among other glitches. Lotus Notes can have problems with certain types of MIME attachments. It opens up a can of worms you may not want to look at.

So think about how badly you need to add this detail. If you really need it, go back and create the file, then send the email by attaching the file, while giving the SMTP server the correct content-type so it can handle it more accurately.

HTH, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ Add fun gadgets and colorful themes to express yourself on Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://www.get.live.com/spaces/features


Back to: Top of message | Previous page | Main SAS-L page