Mautic 5 Emails not sending

Your software
My Mautic version is:5
My PHP version is: 8.2
My Database type and version is:

Your problem
My problem is:I am not a PHP guy. Im learning all this on the go. most of the Mautic stuff is set up but im having the issue of Mautic saying it is sending emails… It says “Success” when I go to send a test email… I have a campaign set up to send an email and everything but no emails are doing anything.
I set up multiple cron jobs on my “FASTPANEL” hostinger install and it seems like the ones that update segments are working properly but I cannot seem to get emails to send at all. I should be getting a Double Opt In email from my campaign when a form is submitted but no one is getting them who submit the form.
When I go to my email settings and test the connection it says success and yet nothing happens.
“smtp://info%40fireheartgames.com:SECRET@mail.fireheartgames.com:465” is my DSN settings.

These errors are showing in the log:
[2025-01-13T20:53:04.079426+00:00] console.CRITICAL: Error thrown while running command “mautic:email:fetch”. Message: “Call to undefined function Mautic\EmailBundle\MonitoredEmail\imap_search()” {“exception”:“[object] (Error(code: 0): Call to undefined function Mautic\EmailBundle\MonitoredEmail\imap_search() at /var/www/fastuser/data/www/beardyproductions.com/Email/app/bundles/EmailBundle/MonitoredEmail/Mailbox.php:523)”,“command”:“mautic:email:fetch”,“message”:“Call to undefined function Mautic\EmailBundle\MonitoredEmail\imap_search()”} {“hostname”:“srv654197”,“pid”:9040}

Steps I have tried to fix the problem: not certain yet

This isn’t sending but rather fetching emails.

Have you tried running the cmd manually (as the web user)

would mautic:email:send be the command/cron job? I just cant figure out why no emails will do anything even tho the server says “success”

I don’t think that command exist…

Please see here:
https://docs.mautic.org/en/5.x/configuration/cron_jobs.html#send-scheduled-broadcasts-segment-emails-cron-job

And if it does say “success”, then chances are that is did succeed.

PHP isn’t really sending any email. It’s acting as an email client (see it like a MS Outlook or Thunderbird). It does require a SMTP server in order to be able to “send” those emails.

Check what the server have to say (that’s the SMTP server, not your web server).

I will look into this.

I also followed the tutorial to have Doctrine set up in Queue settings and im now getting this as an error…
I have many many cron jobs set up shown here… the Doctrine setup had me make the last one on the list.

[2025-01-14T15:41:01.825673+00:00] console.CRITICAL: Error thrown while running command “mautic:broadcasts:send”. Message: “An exception occurred while establishing a connection to figure out your platform version. You can circumvent this by setting a ‘server_version’ configuration value For further information have a look at: BC break between 1.6.7 -> 1.6.8 regarding driver selection · Issue #673 · doctrine/DoctrineBundle · GitHub” {“exception”:“[object] (Doctrine\DBAL\Exception(code: 0): An exception occurred while establishing a connection to figure out your platform version.\nYou can circumvent this by setting a ‘server_version’ configuration value\n\nFor further information have a look at:\nBC break between 1.6.7 -> 1.6.8 regarding driver selection · Issue #673 · doctrine/DoctrineBundle · GitHub at /var/www/fastuser/data/www/beardyproductions.com/Email/vendor/doctrine/doctrine-bundle/ConnectionFactory.php:183)\n[previous exception] [object] (Doctrine\DBAL\Exception\ConnectionException(code: 1045): An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user ‘’@‘localhost’ (using password: YES) at /var/www/fastuser/data/www/beardyproductions.com/Email/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\n[previous exception] [object] (Doctrine\DBAL\Driver\PDO\Exception(code: 1045): SQLSTATE[HY000] [1045] Access denied for user ‘’@‘localhost’ (using password: YES) at /var/www/fastuser/data/www/beardyproductions.com/Email/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user ‘’@‘localhost’ (using password: YES) at /var/www/fastuser/data/www/beardyproductions.com/Email/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34)”,“command”:“mautic:broadcasts:send”,“message”:“An exception occurred while establishing a connection to figure out your platform version.\nYou can circumvent this by setting a ‘server_version’ configuration value\n\nFor further information have a look at:\nBC break between 1.6.7 -> 1.6.8 regarding driver selection · Issue #673 · doctrine/DoctrineBundle · GitHub”} {“hostname”:“srv654197”,“pid”:12057}

I would suggest you to spend efforts on that feature only if you really need it.

And especially that part, the step #3
My take on it:
Implement it only if you understand the script

And…
If you do understand the script, I bet my monthly that you’ll avoid using it (it’s bad)