Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Mail::Sendmail Multipart MIME isn't working

by blahblahblah (Priest)
on Jun 28, 2008 at 01:13 UTC ( [id://694472]=note: print w/replies, xml ) Need Help??


in reply to Mail::Sendmail Multipart MIME isn't working

I have a guess: does it work correctly if you remove the following line?
$html = encode_entities($html);
I suspect that the example you linked to is expecting non-html text as input and is therefore encoding all entitites, whereas your data has html tags that you want left alone.

Replies are listed 'Best First'.
Re^2: Mail::Sendmail Multipart MIME isn't working
by cormanaz (Deacon) on Jun 28, 2008 at 16:56 UTC
    I tried that. I also added $html = encode_qp $html; because I think the HTML has to be quoted printable to be used in MIME. That works much better, i.e., the message gets interpreted as HTML.

    OTOH now all the quotes are disappearing from the HTML. Anyone know why that is?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://694472]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2024-04-19 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found