define( 'WPCF7_AUTOP', false ) not working, p tags still there
-
Hello,
I have Contact Form 7 version 4.3.1 and WordPress 4.4.1.
I added define( ‘WPCF7_AUTOP’, false ) to the wp-config.php file but the HTML mails are still being sent with p tags everywhere.
I confirmed that it is a Concact Form 7 issue, because when I uncheck Use HTML content type the p tags disappear (but obviously the mail is sent in plain text and the HTML code is visible).
Contact Form 7 is changing the HTML code and sending it like this:
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http= ://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p>=0A<p><html xml= ns=3D"https://www.w3.org/1999/xhtml" lang=3D"en" xml:lang=3D"en"></p>=0A<= p><head><br />=0A<meta http-equiv=3D"Content-Type" content=3D"text/html;= charset=3Dutf-8"><br />=0A<meta name=3D"viewport" content=3D"width=3Dde= vice-width, initial-scale=3D1.0"/><br />=0A </head></p>=0A<p><body><br /= >=0A<img src=3D"https://somedomain/images/someimage.png"></p>=0A<p>Dear Joe= ,</p>=0A<p>Thanks for contacting us! This is just a note to confirm that= we have received your message. We'll analyze your request and reply as= soon as possible.</p><br />=0A</body></p>= =0A
But it should be sent like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> </head> <body> <img src="https://somedomain/images/someimage.png" > Dear [your-name],<br /><br /> Thanks for contacting us! This is just a note to confirm that we have received your message. We'll analyze your request and reply as soon as possible.<br /><br /> </body>
Please any help will be greatly appreciated.
Mc
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘define( 'WPCF7_AUTOP', false ) not working, p tags still there’ is closed to new replies.