I don't personally share the 'HTML e-mail is evil' philosophy. And even if you're in the ascii-only camp, HTML mail isn't going anywhere anytime soon. People will ask how to generate and parse it, and there are plenty of Perl tools and modules to do so.
I see that it was said "only a really cool mail reader" can handle MIME messages. I guess that's true if Outlook, Outlook Express, Netscape Mail, Eudora Light, Eudora Pro, recent versions of Lotus, popular 'web-based' mail readers such as Yahoo, Hotmail, Webmail, and most other popular mail readers would be considered really cool. The only mail readers I have seen that don't handle MIME messages very well are older copies of CCmail, Z-mail, and Pine. If you want to create HTML mail or other MIME mail, the most effective way I've found to do it is to use the MIME::Lite module. It can also be used to send HTML mail or various types of attachments. If interested in learning more about it, just go to CPAN and search the module documentation. Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] [EMAIL PROTECTED] -----Original Message----- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:49 PM To: 'David T-G'; perl beginners cgi Cc: Camilo Gonzalez; 'Fred Sahakian' Subject: RE: HTML in E-mail David, I admire your principles. This is something that has come up before and after some trial and error, what I proposed to him seemed to work. I too feel HTML email is evil but some of us are stuck being prostitutes to keep the wolves from our door. -----Original Message----- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 3:11 PM To: perl beginners cgi Cc: Camilo Gonzalez; 'Fred Sahakian' Subject: Re: HTML in E-mail Fred, Camilo, et al -- .....and then Camilo Gonzalez said... % % Fred, % % Thank Jah this problem was recently successfully solved! Try this: % % open(MAIL,"|$mailprog -t"); % print MAIL "Content-Type: text/html\n"; % print MAIL "To: $comm\@courts.state.ny.us\n"; ..... Note that, although he's posted to the CGI list, he's asking about email. In this case you've stuck on a lovely C-T: header (missing an extra newline, though) as though you were spitting out to a web page, but that's not what he's doing. What he *wants* is to output something like To: ... From: ... Subject: ... Content-Type: multipart/related; boundary="HTML-email-is-really-bad" This is a MIME message. Only a really cool mailreader can see this. --HTML-email-is-really-bad Content-Type: text/html; Here is your <bold>freakin'</bold> HTML mail. --HTML-email-is-really-bad which properly describes the message body in the headers, leaves a blank line to identify the header end and the body begin, and then lays out the body pieces. No, I don't know how to write it in perl. I think I'd feel dirty if I did; this is bad enough ;-) I'm sure there's a module, though. HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.365 / Virus Database: 202 - Release Date: 5/24/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]