Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: HTML/Plain Text mail

by cat2014 (Monk)
on Jan 05, 2002 at 23:57 UTC ( [id://136584]=note: print w/replies, xml ) Need Help??


in reply to Re: HTML/Plain Text mail
in thread HTML/Plain Text mail

This is about how I do it, too. I have one suggestion-- make sure that the html message string has no newlines in it.

I don't remember which ones (maybe hotmail??), but some mailreaders display the html of multipart messages with a really screwy layout if there are newlines in there. So, s/\n\t//g is your friend. (If you're getting the text of the mail from folks who write it up in M$ products, like Word, then you want to expand that regex to strip out more characters-- Word puts in funky ^M's and stuff that you'll want to remove as well.)

-- cat

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found