Hi,
What methods are there of detecting whether an email recipient has HTML or Plain text enabled when emailing a form and/or giving them the option of switching?
Thanks
None. PHP is on server, user's mail client is ... wherever. Unless you ask the user to select, what is his preferred type, there is no way to know.
A second choice - two step sign on for newsletters is now considered standard. So on the confirmation email have a "click here to confirm" hyperlink which is
"http://mysite.com/confirm.php?id=123" for the plain text version
and
"http://mysite.com/confirm.php?id=123&type=1" for the html version
if you get the flag then the user must have seen the html version of the confirmation email rather than the plain text. Assuming the user viewed the email using his/her everyday email client then you should be done.