Fresh Install On Ubuntu 22 Emails Will Not Send

A problem occurred while sending the email. Please revise your settings. (Error: Email could not be sent. Check your mail server log) that is the error I am receiving. Let me know and I can give you the logs

can please also print the log message and the email section of the config.php.


This is my first time reaching out for support so please bear with me, how do I do that ?