I did one test.
- I deleted all the flarum files from the folder.
- I deleted flarum from mySQL database.
- I created a new database called flarum.
- I installed the latest WordPress in the folder /var/www/www.example.com
- I removed from apache2 config (public)
DocumentRoot /var/www/www.example.com/public
<Directory "/var/www/www.example.com/public/">
public
- I installed the plugin easy-wp-smtp/
- I set the plugin according to the picture
- I clicked on the test email and tried it.
The mail arrived in the mailbox immediately.
I own the server.
It is a Debian 11 Linux Container (LXC).
I have a public IP address.
I don't know why flarum doesn't want to send emails!
I will remind you that I had to add these directives to wp-config.php so that WP works correctly behind a reverse proxy server.
define('FORCE_SSL_ADMIN', true);
// in some setups HTTP_X_FORWARDED_PROTO might contain
// a comma-separated list e.g. http,https
// so check for https existence
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';