Title: html code stripped from html mail
Last modified: December 5, 2017

---

# html code stripped from html mail

 *  Resolved [Ambyomoron](https://wordpress.org/support/users/josiah-s-carberry/)
 * (@josiah-s-carberry)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/html-code-stripped-from-html-mail/)
 * I note that I have Send HTML mails set to Yes.
    When the ‘Mail sending method’
   is set to WP Mail, some of the html code is stripped out (notably the <p>, </
   p> and <br /> tags). The mail gets sent without the benefit of those tags. When
   the Mail sending method is set to SMTP, the mail is sent with proper formatting.
 * Is this just a coincidence? I note, too, that the html tags mentioned above are
   not saved in the mail templates.
 * PS: In the default value for the template of Respondent email format, the placeholders#
   _FIRSTNAME and #_LASTNAME don’t. You might consider changing the defaults to #
   _RESPFIRSTNAME and #_RESPLASTNAME

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/html-code-stripped-from-html-mail/#post-9751670)
 * Wordpress messes a bit too much with the formatting … wp_mail might strip those
   out (or not … but I don’t use it anymore, too unreliable).
    wp_mail is also filtered
   by the filter called wp_mail, see: [https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail](https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail)
   so maybe that one is interfering with your br-tags …
 * I’ll change #_FIRSTNAME and #_LASTNAME for the default respondent email format(
   for future installations)
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/html-code-stripped-from-html-mail/#post-9753811)
 * Just checked, the defaults for respondent email format are fine in the code. 
   See this php extract:
 *     ```
          $respondent_email_subject_localizable = __("Reservation for '#_EVENTNAME' confirmed",'events-made-easy');
          $respondent_email_body_localizable = __("Dear #_RESPNAME,<br/><br/>You have successfully reserved #_RESPSPACES space(s) for #_EVENTNAME.<br/><br/>Yours faithfully,<br/>#_CONTACTPERSON",'events-made-easy');
       ```
   
 * Of course I can’t change the settings you already have there …

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘html code stripped from html mail’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Franky](https://wordpress.org/support/users/liedekef/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/html-code-stripped-from-html-mail/#post-9753811)
 * Status: resolved