# Emails are not being sent (First time installation)

**URL:** <https://forum.mautic.org/t/emails-are-not-being-sent-first-time-installation/31891>\
**Category:** Mautic 5 Install/Upgrade Support\
**Tags:** email\
**Created:** [April 29, 2024, 1:37pm UTC](https://forum.mautic.org/t/emails-are-not-being-sent-first-time-installation/31891 "2024-04-29T13:37:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel\_costa](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@joel\_costa](https://forum.mautic.org/u/joel_costa)\
**Post date:** [April 29, 2024, 1:37pm UTC](https://forum.mautic.org/t/emails-are-not-being-sent-first-time-installation/31891/1 "2024-04-29T13:37:18Z")

</div>

**Your software**  
My Mautic version is: 5.0.4  
My PHP version is: 8.0.30  
My Database type and version is: 5.7.23-23

**Your problem**  
My problem is: After the initial setup, I noticed that emails are not being delivered. Testing on email settings is ok.

These errors are showing in the log:  
2024-04-29T10:00:04.151954-03:00] mautic.ERROR: Symfony\Component\Messenger\Exception\InvalidArgumentException: You cannot receive messages from the Messenger SyncTransport. (uncaught exception) at /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/messenger/Transport/Sync/SyncTransport.php line 37 while running console command `messenger:consume` [stack trace] #0 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/messenger/Worker.php(101): Symfony\Component\Messenger\Transport\Sync\SyncTransport-\>get() #1 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/messenger/Command/ConsumeMessagesCommand.php(234): Symfony\Component\Messenger\Worker-\>run(Array) #2 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/console/Command/Command.php(298): Symfony\Component\Messenger\Command\ConsumeMessagesCommand-\>execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/console/Application.php(1058): Symfony\Component\Console\Command\Command-\>run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application-\>doRunCommand(Object(Symfony\Component\Messenger\Command\ConsumeMessagesCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/console/Application.php(301): Symfony\Bundle\FrameworkBundle\Console\Application-\>doRunCommand(Object(Symfony\Component\Messenger\Command\ConsumeMessagesCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application-\>doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application-\>doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /home3/apoll384/public\_html/www.apollogestao.com.br/mautic/bin/console(16): Symfony\Component\Console\Application-\>run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 {main} {“hostname”:“br1052.hostgator.com.br”,“pid”:398517}  
[2024-04-29T10:00:04.153496-03:00] mautic.WARNING: Command `messenger:consume` exited with status code 1 {“hostname”:“br1052.hostgator.com.br”,“pid”:398517}

Steps I have tried to fix the problem: I tested the email setup and checked the cronjobs

 ![cronjob](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5b2db3f40b4fb3048abdb964e58315f1c428fad7.png)
