HTML mails missing line breaks
-
Hi @badhonrocks!
You are using this line in
/includes/lite/features/grid/module.phpadd_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
And here is the solution: 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:
formormail.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 to reply to this topic.