[Plugin: Contact Form 7] complex HTML-email autop
-
Contact Form 7 ist great, very great, but there is one problem since a longer time and I write you the problem and spent you money, but the problem exists anymore.
I use Contact form 7 to send HTML-Emails with good-looking, more complex HTML.
The problem is this autop on line 284 in includes / classes.php:
if ( $use_html ) { $body = preg_replace_callback( $regex, $callback_html, $mail_template['body'] ); $body = wpautop( $body ); // <--- } else { $body = preg_replace_callback( $regex, $callback, $mail_template['body'] ); }I must uncomment this line on every plugin update – and because you are very hard-working there are a lot of updates and I have more than one Blog.
The p’s destroy my HTML-structure.
Please make this line hookable or depending on WPCF7_AUTOP – this is simple and help me and a lot of other WP CF 7 users who wants making more complex HTML-Email-Layouts.
And here is the code-replacement:
if ( $use_html ) { $body = preg_replace_callback( $regex, $callback_html, $mail_template['body'] ); if ( WPCF7_AUTOP ) { $body = wpautop( $body ); } } else { $body = preg_replace_callback( $regex, $callback, $mail_template['body'] ); }
The topic ‘[Plugin: Contact Form 7] complex HTML-email autop’ is closed to new replies.