# Processing Email Queue Causes Campaign to be Unpublished

**URL:** <https://forum.mautic.org/t/processing-email-queue-causes-campaign-to-be-unpublished/34786>\
**Category:** Product Support\
**Created:** [January 18, 2025, 3:26pm UTC](https://forum.mautic.org/t/processing-email-queue-causes-campaign-to-be-unpublished/34786 "2025-01-18T15:26:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benhunt1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/benhunt1/32/13272_2.png) [@benhunt1](https://forum.mautic.org/u/benhunt1)\
**Post date:** [January 18, 2025, 3:26pm UTC](https://forum.mautic.org/t/processing-email-queue-causes-campaign-to-be-unpublished/34786/1 "2025-01-18T15:26:33Z")

</div>

Hi. I’ve set up a cron job to process email, but as soon as I run the PHP script I get an email notifying me that

> “Due to repeated event failures, your Test FUS campaign has been unpublished. The failing event is named Email Number one.”

That email is the first in a test follow-up sequence I’ve set up. The first email should go out immediately to a new user upon registering.

When I run the PHP file directly, it outputs the following line:

> “Command ‘php bin/console messenger:messages:send’ failed with return code 1. Output:”

Error log shows the following line:

> “[2025-01-18T00:02:07.042357+01:00] mautic.ERROR: Symfony\Component\Console\Exception\NamespaceNotFoundException: There are no commands defined in the “messenger:messages” namespace. Did you mean one of these? mautic:messages messenger messenger:failed (uncaught exception) at /home/clients/b93156fc8077f844c065e6ca9fd131b7/sites/list.cyberfreedom.club/vendor/symfony/console/Application.php line 650 while running console command `UNKNOWN` [stack trace] #0…”

Email settings are set to use my host’s SMTP. This is working fine for test emails.

Could a non-existent email address cause a failure here? I’m doubtful.

Any other ideas please? I’m stuck at this point.

**Your software**  
My Mautic version is: v5.1.1  
My PHP version is: 8.1.29  
My Database type and version is: MariaDB 10.6.19
