[thelist] TXT / HTML email detection

Rob Smith rob.smith at THERMON.com
Thu Aug 12 14:11:51 CDT 2004


<snip>Does anyone know of a particularly good tutorial or knowledge base to
help 
me with sending HTML emails and sniffing out whether the user/recipient can 
view HTML or Text only?
</snip>

There are one of two ways you can handle this. One, you can "Poll the
Audience" with a simple "Do you want to receive further emails in plain text
or HTML (Yes) (No)?" Or default to the known standard of plain text. 

If you create a newsletter system, I found using the PHP function
urlencode() helpful in translating the hard carriage returns to be actually
hard carriage returns on the receiving end.

As far as automatically detecting without some kind of user
confirmation/interaction, hopefully someone will know.

Rob


More information about the thelist mailing list