I have sites running the following:
D10.4.7 PHP 8.3.21 Mail working out of the box
D11.1.7 PHP 8.3.21 Mail working out of the box
D11.2.2 PHP 8.3.21 Mail not working.
I have ensured that the modules and settings are identical between D11 versions. I have uninstalled and reinstalled the modules on 11.2.2.
That's both Symphony Lite and Symphony experimental and PHPmailer
I have hunted for solutions but cannot find anything.
All mail fails.
There is a "message sent" response immediately followed by "mail could not be sent, contact administrator.
I have tried defaulting to each of the options in the settings page and I have tried using SMTP mail.
The result is always the same.
I'd be grateful for any hints (no, more than hints - idiot-proof instructions!)
Thanks
settings,phpsometimes can contain a setting to block mail. I would check that file line by line.