Line breaks missing in CF7 html mails
-
Since a few months, we have issues with the formatting of our html mail messages coming from CF7. Everything worked fine until version 5.7. With version 5.8 and even 5.9.2 line breaks seem to be deleted in the mails, so that most inputs are sent in one line.
If this would be only in the fields, that we control, we could add a <br> at the end of every line. This is quite some manual work, but could be done.
What we cannot control, if someone is entering several lines of text in a [textarea] to submit a longer message. In this case also the whole text will be mailed in one single line.
From what I saw in other threads, I suspect that it has to do with the functions wpcf7_autop() and wpcf7_autop_or_not(). In wp-config.php WPCF7_AUTOP is set to false. If I change it to true, the formatting of the form fields in our website is crap, but the mails are more or less ok.
Can someone explain, how to properly switch the formatting of mail to the “old” correct style, while maintaing the actual display of the form fields on the website? Or is this not possible anymore?
We use 2 other plugins related to CF7 with the latest versions: Conditional Fields for Contact Form 7, 2.4.8 and Contact Form CFDB7, 1.2.6.8
Thanks, Patrick
- This topic was modified 11 months, 3 weeks ago by .
- This topic was modified 11 months, 3 weeks ago by .
The page I need help with: [log in to see the link]
- The topic ‘Line breaks missing in CF7 html mails’ is closed to new replies.