Viewing 8 replies - 1 through 8 (of 8 total)
  • I have the same problem. The checkbox “Use HTML Content Type” is checked, but the Mail has no auto line-breaks / paragraphs. Is it now necessary to add p or br-Tags by ourself?

    Thread Starter alfan9ve

    (@alfan9ve)

    I did the Rolback and I’m waiting for the team to correct the error in a next update!

    I am investing the new hook “wpcf7_mail_html_body” that got introduced in 5.8. Will get back to you in a few minutes …

    add_filter( 'wpcf7_mail_html_body', 'my_wpcf7_html_autop', 10, 1 );
    function my_wpcf7_html_autop( $body ) {
       $body = wpcf7_autop( $body );
       return $body;
    } 

    This works for me … autop means it should add paragraphs by itself to mail body …

    Thank you so much @mountbatt ! I also start getting all e-mails without new lines after the latest update and I were getting nut trying to fix it in the body of the user-message

    Thread Starter alfan9ve

    (@alfan9ve)

    I apologise for my lack of knowledge, but where should I paste this code? In the body of the email?

    No, you have to put it into the functions.php file on the child theme, but if you are not aware of what you’re doing, you can get in troubles with WordPress since it’s a risky operation…

    Thread Starter alfan9ve

    (@alfan9ve)

    Thanks for the information.

    I’ll wait for the developer to make the correction.

    Or look at other plugins.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Latest update 5.8’ is closed to new replies.