Title: Error in HTML Emails
Last modified: December 3, 2021

---

# Error in HTML Emails

 *  Resolved [simonetin](https://wordpress.org/support/users/simonetin/)
 * (@simonetin)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/)
 * Hi,
    I’ve been using forminator for a few months and I think it is a wonderful
   plugin, even if it needs some improvements.
 * Months ago I created forms that automatically sent customized email to the customer,
   but since a couple of days the plugin is not able to read the HTML correctly,
   the email received by the customers looks like this:
    [https://i.ibb.co/888G2ZQ/Schermata-2021-12-03-alle-12-29-16.png](https://i.ibb.co/888G2ZQ/Schermata-2021-12-03-alle-12-29-16.png)

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

 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15129220)
 * Hi [@simonetin](https://wordpress.org/support/users/simonetin/),
 * Sorry to hear about the issues noticed.
 * Is it possible to share the Form export to test the form on our side and see 
   what might be causing it?
 * Please check the following doc on how to export a form:
    [https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export)
 * In the following reply, you can share the export file via Google Drive, Dropbox,
   or any such cloud services.
 * Looking forward to your response.
 * Kind Regards,
    Nithin
 *  [mrbleuu](https://wordpress.org/support/users/mrbleuu/)
 * (@mrbleuu)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15132832)
 * I think you are having the issue I am describing here:
 * [https://wordpress.org/support/topic/radio-values/?#post-15064007](https://wordpress.org/support/topic/radio-values/?#post-15064007)
 *  Thread Starter [simonetin](https://wordpress.org/support/users/simonetin/)
 * (@simonetin)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15132883)
 * Hi,
    I’ve found the problem: email editor is not able to read **<style></style
   >** anymore. So all the internal CSS becomes plain text.
 * Is there a way to solve it? It wasn’t like this some days ago.
 * Thanks.
 *  [mrbleuu](https://wordpress.org/support/users/mrbleuu/)
 * (@mrbleuu)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15132894)
 * I think this relates to one of these fixes in .7:
    – Fix: Data must be Sanitised,
   Escaped and Validated – Fix: Stripping HTML tags – Fix: Sanitised Custom HTML
   email notifications.
 * Will wait and see what Forminator team say
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15133484)
 * Hi [@mrbleuu](https://wordpress.org/support/users/mrbleuu/) [@simonetin](https://wordpress.org/support/users/simonetin/)
 * I pinged our Frominator Team about this query. Thank you for your patience while
   we look into this further.
 * Kind Regards,
    Kris
 *  [Kris – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport13/)
 * (@wpmudevsupport13)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15137408)
 * Hi [@mrbleuu](https://wordpress.org/support/users/mrbleuu/) [@simonetin](https://wordpress.org/support/users/simonetin/)
 * I spoke with our developers and we will not continue to support using such tags
   in email notifications. I pinged our SLS Team can they provide a hook for this.
   We will post an update here as soon as more information is available.
 * Kind Regards,
    Kris
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15154666)
 * Hello [@simonetin](https://wordpress.org/support/users/simonetin/) ,
 * Please try this code:
 *     ```
       <?php
       add_action(
       	'wp_ajax_forminator_save_builder',
       	function() {
       		add_filter(
       			'wp_kses_allowed_html',
       			function( $tags, $context ) {
       				$tags[ 'style' ] = array();
       				return $tags;
       			},
       			10,
       			2
       		);
       	}
       );
       ```
   
 * Add this as mu-plugin. Here is how to use Must Use plugins [https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
 * kind regards,
    Kasia
 *  [mrbleuu](https://wordpress.org/support/users/mrbleuu/)
 * (@mrbleuu)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15154858)
 * Is there a way to allow multiple tags (not just style) – e.g. < LI>, < UL>, <
   B> and <I>
    -  This reply was modified 4 years, 6 months ago by [mrbleuu](https://wordpress.org/support/users/mrbleuu/).
 *  Plugin Support [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * (@wpmudevsupport12)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15155592)
 * Hi [@mrbleuu](https://wordpress.org/support/users/mrbleuu/)
 * We recently implemented some validations for security in the Form so some tags
   will be removed.
 * Can you create a new ticket and we can take a closer look for you?
 * Per forum rules, we don’t spam the original thread starter.
 * Best Regards
    Patrick Freitas

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

The topic ‘Error in HTML Emails’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 9 replies
 * 6 participants
 * Last reply from: [Patrick – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport12/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/error-in-html-emails/#post-15155592)
 * Status: resolved