• First, thanks @takayukister for this plugin that has endured all these years!

    We had to transition from 7.4.5 to 8.0.2.3 due to the version’s end of life on our dedicated LAMP server that has many hosted accounts, most of that use your plugin.

    For years we have used text for the Mail (2) autoresponder comprised of hard returns and checked the forms “Use HTML content type” which always provided a nicely formatted returned email response. But no longer. Any text with soft or hard returns is fully ignored using PHP 8.0.2.3. The text instead comes through as one continuous paragraph with the field results combined. I would surmise the “Use HTML content type” option code is not 8.0.2.3 compliant thus the issue.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter inndesign

    (@inndesign)

    It’s not just a website, it is all the websites on a server. Here is one contact form https://www.customchassisinc.com/contact-us/, but you can’t tell anything by looking at the form user side or from admin side. Nothing changed on the website, only the upgrade to PHP 8.0.28 resulted in the format loss. Flipping back to PHP 7.4.5 restores the HTML results.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter inndesign

    (@inndesign)

    Each website entails a different combination of plugins, but most of them use the theme Avada 7.8.2 while some are using Avada 7.9.2. The plugins on the website link shared above include:

    • Admin Custom Login by Weblizar
    • Admin Management Xtended by Oliver Schl?be
    • Advanced Database Cleaner by Younes JFR.
    • Akismet Anti-Spam by Automattic
    • Async JavaScript by Frank Goossens (futtta)
    • Autoclear Autoptimize Cache by Theme Surgeons
    • Autoptimize by Frank Goossens (futtta)
    • Classic Editor by WordPress Contributors
    • Honeypot for Contact Form 7 by Nocean
    • Contact Form 7 by Takayuki Miyoshi
    • Drag and Drop Multiple File Upload – Contact Form 7 by Glen Don L. Mongaya
    • WP OPcache by nierdz
    • Avada Builder by ThemeFusion
    • Avada Core by ThemeFusion
    • LH Zero Spam by Peter Shaw
    • Really Simple SSL by Really Simple Plugins
    • Redirection by John Godley
    • Simple Lightbox by Archetyped
    • Advanced Editor Tools (previously TinyMCE Advanced) by Automattic
    • Wordfence Security by Wordfence
    • Yoast SEO by Team Yoast
    • WP Htaccess Editor by WebFactory Ltd
    • Slimstat Analytics by Jason Crouse, VeronaLabs

    I don’t see what any of this has to do with the problem. Contact Form 7 sends emails using the wp_mail function, which relies on the PHP mail function on my hosting server. That transition through the newer PHP version is where the problem exists, not the plugins or theme. The failure to deliver HTML or at least hard returns occurs during the backend relay.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See Setting up mail

    What email settings do you have in the Mail tab panel?

    To protect personal data, hiding email addresses in the settings or replacing them with dummy addresses is strongly advised. You can also include screenshots.

    Thread Starter inndesign

    (@inndesign)

    All accounts only use the domain TLD for email entries, e.g. in the above case, [email protected]. Again, this is a distraction from the actual problem.

    Thread Starter inndesign

    (@inndesign)

    Here are how HTML forms pass through using PHP 7.4.5 using Contact Form 7, retaining returns:
    
    From: Kendra Hart 
    Company: Commercial Cleanrs
    Street Address: 34 13th Ave NE Suite B001
    City: Minneapolis
    State: MN
    Zip Code: 55413
    Phone: 6128888872
    Senders Email: [email protected]
    Best Time to Call: Morning
    Subject: Your Office Cleaning
    Message Body: I'm in Ohio and would be happy to visit your business and submit a bid for your recurring weekly (or more) janitorial and disinfection needs.
    Would you like to compare pricing on your office cleaning service, or having your space cleaned addressing your cleaning issues i.e. CoVid, communication, shoddy work, etc. ?
    I'd be happy to provide you with a no-obligation quote on your facilities cleaning.
    Please simply respond and I will send next steps.
    Regards,
    Kendra
    Kendra Hart
    Director of Operations
    Commercial Cleanrs
    P:(612) 888-8872
    [email protected]
    Please respond with "stop" to opt out.
    
    
    Here are how HTML forms pass through using PHP 8.0.28 using Contact Form 7, missing all returns creating one continuous run on paragraph:
    
    From: Kendra Hart Company: Commercial Cleanrs Street Address: 34 13th Ave NE Suite B001 City: Minneapolis State: MN Zip Code: 55413 Phone: 6128888872 Senders Email: [email protected] Best Time to Call: AM Subject: Your Office Cleaning Message Body: I'm in Ohio and would be happy to visit your business and submit a bid for your recurring weekly (or more) janitorial and disinfection needs. Would you like to compare pricing on your office cleaning service, or having your space cleaned addressing your cleaning issues i.e. CoVid, communication, shoddy work, etc. ? I'd be happy to provide you with a no-obligation quote on your facilities cleaning. Please simply respond and I will send next steps. Regards, Kendra Kendra Hart Director of Operations Commercial Cleanrs (612) 888-8872 [email protected] Please respond with "stop" to opt out. 
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘HTML Option Not PHP 8.0 Compliant’ is closed to new replies.