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]