Title: Include HTML / Code Block in email
Last modified: May 21, 2021

---

# Include HTML / Code Block in email

 *  Resolved [tanner96](https://wordpress.org/support/users/tanner96/)
 * (@tanner96)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/include-html-code-block-in-email/)
 * How can we include the html block in the email that is sent?
 * All fields does not include this

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

 *  [Will Derichsweiler](https://wordpress.org/support/users/williamdersh/)
 * (@williamdersh)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/include-html-code-block-in-email/#post-14476961)
 * Hi [@tanner96](https://wordpress.org/support/users/tanner96/),
 * Thanks for writing in!
 * The reason that we don’t pass HTML fields, Section Divider fields, or descriptions(
   the second two of which are essentially HTML fields) is that these areas allow
   full HTML, which means it will be common for them to contain things that will
   break email notifications or cause delivery problems.
 * However, we do have a filter that will allow you to include non-input fields 
   in your emails. Here’s our [tutorial](https://wpforms.com/developers/include-page-break-section-divider-and-html-fields-in-notifications/)
   with all of the details, plus the code you’d need.
 * We also have a helpful [tutorial](https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/)
   with details on how to add custom code like this to your site (for an especially
   easy option, I recommend the Code Snippets plugin option).
 * Or if you’d prefer to avoid PHP, you could consider modifying the body of your
   notifications to include the text you need. You could do this by building out
   the notification content in a more customized way using regular text, HTML, and
   Smart Tags. In case it helps, here’s a couple of screenshots of an example:
 * – [Message Setup](https://a.supportally.com/klWvLo)
    – [Email Received](https://a.supportally.com/ywFhFb)
 * This option probably provides the most control, since you can pick and choose
   exactly which details you’d like included in your notification.
 * I apologize if this isn’t quite what you were looking for, but hopefully one 
   of these ideas could work for you.
 * Thanks!
 *  Thread Starter [tanner96](https://wordpress.org/support/users/tanner96/)
 * (@tanner96)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/include-html-code-block-in-email/#post-14477851)
 * This is perfect, thank you for the solutions! You may now close this ticket
 *  [Will Derichsweiler](https://wordpress.org/support/users/williamdersh/)
 * (@williamdersh)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/include-html-code-block-in-email/#post-14486663)
 * Hey [@tanner96](https://wordpress.org/support/users/tanner96/),
 * I’m happy I could help!
 * Have a good one 🙂

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

The topic ‘Include HTML / Code Block in email’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Will Derichsweiler](https://wordpress.org/support/users/williamdersh/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/include-html-code-block-in-email/#post-14486663)
 * Status: resolved