Hello, I've a recurring problem of the contact form sending out html but when it arrives, the user sees all the html tags. This happens in Outlook and other mail readers. I used have the TinyMCE TinyMCE WYSIWYG Editor turned on. I know the problem would go away but just wondering if there is a way to fix this and get html mail from the contact form that appears as html.

Thanks in advance.

Comments

pwolanin’s picture

I think the core modules only send e-mail as plain text MIME type:

http://api.drupal.org/api/4.7/function/user_mail

You'd have to find or implement an alternate mail wrapper to send HTML.

A number of modules (e.g. Project and Organic Groups) have code to strip HTML tags so the recipient doesn't see them.

---
Work: BioRAFT

Chichee’s picture

This happens to me, too, using TinyMCE but only when an the user is given permission to only the TinyMCE basic toolbar. The admin user, who has full toolbar access, doesn't get the html code sent in her emails that are sent from the website.

Any fresh ideas?

Aleet’s picture

No fresh ideas. The problem continues. I've been turning tinymce altogher for contact forms.

yrvyn’s picture

How do you turn it off altogether for contact forms? I'm having the same problem.
Thanks!

markconroy’s picture

I've posted this problem twice in the past week but also got no response. It frustrating because the site I set up (contact.ie) sends all mail to elected representatives.

I"ve just tried turning off TinyMCE and it line breaks and paragraphing seem to work fine, so that is a (very short term) solution.

Drupal you really need to get on to this one to stay ahead of the other CMSs.

Mark Conroy

============

Drupal Core Maintainer for "Out of the Box" Initiative.