I am trying to learn the best way to send HTML formatted reports via e-mail using the standard modules that come with Perl 5.8. The examples I have seen assign blocks of HTML code to scalars and pass them to the NET::SMTP datasend() method etc. I was wondering if there was a better, more efficient way of doing this (maybe using filehandles?). The FORMAT command works ok for screen output but I wanted to have things look fancier when I send the report via email.
--Paul
--As for the rest, it is mine.
I'd probably use Mail::Sender, it can handle multipart email quite easily, either from a file or from a scalar. (And in 5.8 you can use a scalar as a file.)
The 'multipart' part of it of course means that you can send both a HTML part and a plain text part...
Daniel T. Staal
--------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>