I’m actually having the same problem. It works with PHP 7.3 but no emails with PHP 7.4.
We are seeing the same issue. Is this related to the same issue as with PHP7.3?
https://ww.wp.xz.cn/support/topic/invalid-address-setfrom/
This looks like it is the same issue that occurred in the PHP 7.3.version.
Apparently that issue related to the PCRE version. Versions <=10.31 had a bug that affected the email address validation regex.
On my host, PHP 7.4 is using an older PCRE version than PHP 7.3.
PHP 7.4 PCRE version: 10.31 2018-02-12
PHP 7.3 PCRE version: 10.32 2018-09-10
I raised the issue with my hosing company, Hawk Host. It does appear to be a bug related to the libpcre2 library bundled with this build of PHP 7.4. Below is a portion of their response.
As we do not actually build the PHP versions we cannot fix this easily ourselves. That being said we’ve filed a bug report already as it’s pretty apparent 7.3 was built against 10.32 specifically to work around this problem and it was an oversight that 7.4 instead used 10.31.
As my issue is related to PHP and not specifically this plugin, I’m going to mark this as resolved. My issue should be fixed when my host gets a corrected PHP 7.4 build. (Obviously I can’t state with certainty that the other people with this issue are in the exact same situation.)
Hi @bradbrownmagic,
Thanks for letting us know with detailed information.
Have a good one 🙂
Thank you @bradbrownmagic for the information. Rolling back to php 7.3 for the time being.
@bradbrownmagic
Thanks for all the information you provided!
I’ve checked the PHP 7.4 source code here and I see that PHP 7.4 upgraded to PCRE2 v10.33 in May, so the release version should be going with 10.33 and not 10.31.
There might be a situation when hosting upgrades PHP but didn’t upgrade extensions separately OR builds the PHP incorrectly in some way.
Could you please ask your hosting company to provide a link to a bug report they’ve filed? I’d like to follow it, but can’t find it here right now.
@slaffik I’ve asked, and will let you know when I hear something.
FYI: I believe the PHP builds are provided by CloudLinux. I couldn’t find a public bugtracker for them, but I did see a forum post where they said a fix was going out this Friday. https://www.cloudlinux.com/forum/forum11/email-using-php-7-4-not-working
-
This reply was modified 6 years, 6 months ago by
Brad Brown.
@slaffik
Turns out there isn’t a public bugtracker, which would explain my inability to find one.
Here’s my host’s response:
There is no public bug reporting system but the case number is ALTPHP-823 and when it’s fixed it’ll be posted on https://cloudlinux.com/cloudlinux-os-blog
Interesting that this is marked as resolved because its not. Its a serious oversight in testing by Cloudlinux.
Hi @epaslv,
This issue is marked as resolved as the issue seems to be with the PCRE library (the one that parses and validates emails) bundled with PHP, and is outside the scope of the plugin.
Thanks!
Just FYI for those who are following this issue. It looks like CloudLinux is FINALLY moving on the underlying PHP issue. The fix is (supposedly) in their newest PHP 7.4 beta release.
Don’t how long before it goes live and the update gets applied by hosts, but at least something is happening.
Reference:
https://www.cloudlinux.com/forum/forum11/email-using-php-7-4-not-working
https://blog.cloudlinux.com/beta-alt-php-updated
Is the problem solved? I’m having the same problem. I am using PHP 7.4.1 but the system cannot send mail.
@bfeel
Cloudlinux released an updated PHP build today that is supposed to include this fix. It hasn’t been deployed at my host yet, so I can’t say for sure.
https://cloudlinux.com/component/easyblog/entry/alt-php-updated-1-100?Itemid=292
-
This reply was modified 6 years, 5 months ago by
Brad Brown.
@bradbrownmagic I’m looking forward. Thank you. I use Cloudlinux too.