in reply to HTML/Plain Text mail
One thing I've found is that MIME support in email clients is very poor and you have to be careful what you send. We use tricks like putting invisible plain text at the top of the HTML so that people with broken clients can still read it. MIME::Lite is a handy module for simple MIME messages.
The call to scrub seems to help it work a bit better. I prefer to use the Mail::Bulkmail module which makes it easy to send messages to multiple recipients.use MIME::Lite; my $msg = MIME::Lite->new(Type => 'multipart/alternative'); $msg->attach(Type => 'text/plain', Data => $msg_text); $msg->attach(Type => 'text/html', Data => $msg_html, Encoding = 'quote +d-printable'); $msg->scrub; $msg_mime = $msg->as_string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(2): HTML/Plain Text mail
by dmmiller2k (Chaplain) on Jan 04, 2002 at 23:35 UTC | |
|
Re: Re: HTML/Plain Text mail
by Anonymous Monk on Jan 05, 2002 at 00:38 UTC | |
by gav^ (Curate) on Jan 05, 2002 at 03:22 UTC | |
by Kickstart (Pilgrim) on Jan 05, 2002 at 04:31 UTC | |
|
Re: Re: HTML/Plain Text mail
by cat2014 (Monk) on Jan 05, 2002 at 23:57 UTC |