[oak perl] MIME::Lite question
Michael Paoli
mp at rawbw.com
Wed Jun 1 21:10:16 PDT 2005
There is MIME multipart/alternative. Done well, though it still
comparatively wastes space/bandwidth, it may be less egregious.
But messing up MIME multipart/alternative tends to reflect rather poorly
on the sender and/or their software (spammers and malware often
intentionally misuse multipart/alternative, and some buggy software
also messes it up horribly - these aberrant behaviors can be quite
problematic/annoying for recipients). Maybe someone on the list already
knows if there are modules, etc., that are particularly useful for
constructing MIME multipart/alternative.
http://www.faqs.org/rfcs/rfc2046.html
Quoting "M. Lewis" <cajun at cajuninc.com>:
> NOTE: It has been pointed out to me (off-list) that most folks don't
> like HTML mail. I couldn't agree more. It's the person with the pointy
> little head that I'm sending this for who against everything I said,
> wants it done in HTML. Grrrrr...
>
> M
>
> M. Lewis wrote:
> > I'm trying to use MIME::Lite to send out a mailing. The mailing is an
> > HTML document ($content) with two images in it.
> >
> > The message is being sent as HTML, however the two images do not appear.
> > I've tried adding other attachments for the two images, but that just
> > makes them appear as attachments (duh..) rather than in the HTML
> document.
> >
> > Obviously I have missed the boat here somewhere. Suggestions welcome.
> >
> > Thanks,
> > Mike
> >
> >
> > $msg = MIME::Lite->new(
> > From => "$from",
> > To => "$recipient",
> > Subject => "$subject",
> > Date => `date`,
> > Type => 'multipart/related',
> > );
> >
> > $msg->attach(Type => 'text/html',
> > Path => "$content");
More information about the Oakland
mailing list