• Resolved Brad Brown

    (@bradbrownmagic)


    I tested my site with the new PHP 7.4. Using 7.4 I am unable to send emails. It works with 7.3.

    Obviously with PHP 7.4 just coming out, it’s reasonable for it to not be supported yet. I just thought I’d let you know that there does appear to be an issue.

    The debug info is below, for reference.

    Versions:
    WordPress: 5.3
    WordPress MS: Yes
    PHP: 7.4.0
    WP Mail SMTP: 1.7.1
    
    Params:
    Mailer: smtp
    Constants: Yes
    ErrorInfo: Invalid address: (setFrom) [email protected]
    Host: localhost
    Port: 25
    SMTPSecure: string(0) ""
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(false)
    
    Server:
    OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
    Apache.mod_security: No
    SMTP Debug:
    Invalid address: (setFrom) [email protected]

    Thanks!

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Brad Brown

    (@bradbrownmagic)

    The latest Cloudlinux PHP 7.4.1 build does have the correct PCRE 10.33, and emails from this plugin are sent with it.

    As the previous build with the old PCRE version was also 7.4.1, you’d have to check the phpinfo page to see if you have the correct version of PHP installed. (Or just send a test email. If it works, you’re good.)

    Plugin Author Slava Abakumov

    (@slaffik)

    @bradbrownmagic, thank you for the update!

    7.4.2 has been released? I’m still at 7.4.1. ??

    Thread Starter Brad Brown

    (@bradbrownmagic)

    @bfeel
    No, it’s still at 7.4.1. The problem wasn’t PHP itself. It’s the version of the PCRE library that was bundled with it. (The PCRE library handles pattern matching. In this case it’s being used to validate email addresses. Version 10.31 is old, and has a bug breaks the email validation process.)

    Cloudlinux messed up and originally released their builds of both PHP 7.4 and 7.4.1 with the old PCRE library. They’ve now released a corrected PHP 7.4.1. So, there are now at least two Cloudlinux PHP 7.4.1 builds out there:

    PHP 7.4.1 with PCRE 10.31 which won’t work.
    PHP 7.4.1 with PCRE 10.33 which will work.

    I checked, working. Thank you. ??

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Can’t Send Emails using PHP 7.4’ is closed to new replies.