Title: HTML mails missing line breaks
Last modified: July 24, 2026

---

# HTML mails missing line breaks

 *  [Torsten Landsiedel](https://wordpress.org/support/users/zodiac1978/)
 * (@zodiac1978)
 * [2 weeks, 1 day ago](https://wordpress.org/support/topic/html-mails-missing-line-breaks/)
 * Hi [@badhonrocks](https://wordpress.org/support/users/badhonrocks/)!
 * You are using this line in `/includes/lite/features/grid/module.php`
 *     ```wp-block-code
       add_filter('wpcf7_autop_or_not', '__return_false');
       ```
   
 * The problem with this line is, that you are affecting the display **AND** the
   mail. You only want to target the form display, but you are also targeting the
   mail. If this plugin is enabled, and you check the checkbox to use the _HTML_
   content-type in CF7, you end up with emails without any line breaks (unless you
   add <br> for every line break manually).
 * See this issue: [https://github.com/rocklobster-in/contact-form-7/issues/1340](https://github.com/rocklobster-in/contact-form-7/issues/1340)
 * And here is the solution: [https://github.com/rocklobster-in/contact-form-7/pull/1344/changes/68303ab47a24907e9364e227c9a3a104650f4188](https://github.com/rocklobster-in/contact-form-7/pull/1344/changes/68303ab47a24907e9364e227c9a3a104650f4188)
 * The filter now has a new parameter $options, in which you can define for which
   target you want to add this function: `form` or `mail`.
 * Just a heads up, if you want to fix this behavior, you are now able to do it!
 * All the best
   Torsten

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-mails-missing-line-breaks%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/cf7-styler-for-divi/assets/icon.svg?rev=3466630)
 * [CF7 Mate – AI Form Builder, Styler & Multi-Step Forms for Contact Form 7](https://wordpress.org/plugins/cf7-styler-for-divi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-styler-for-divi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-styler-for-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-styler-for-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-styler-for-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-styler-for-divi/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Torsten Landsiedel](https://wordpress.org/support/users/zodiac1978/)
 * Last activity: [2 weeks, 1 day ago](https://wordpress.org/support/topic/html-mails-missing-line-breaks/)
 * Status: not resolved