Mautic Campaigns

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

CRON
/bin/console mautic:segments:update >/dev/null 2>&1 /bin/console mautic:campaigns:update >/dev/null 2>&1 /bin/console mautic:campaigns:trigger/dev/null 2>&1 /bin/console mautic:broadcasts:send --channel=email /bin/console mautic:messages:send >/dev/null 2>&1 /bin/console mautic:emails:send >/dev/null 2>&1`

Hi
I’m having problems sending my campaigns from a form.

I can send mass emails directly with the “send” button. Therefore, sending messages works.

I created a campaign form.
I created a campaign from the form. Two messages must be sent.
My form and my campaign are active.
When I add a contact from my form, my form adds a new result but the first message of my campaign is not sent.

Do you have any idea why campaign messages are not being sent?
Thanks
Christian

[quote=“chris9575, post:1, topic:33795”]
CRON
/bin/console mautic:segments:update >/dev/null 2>&1
/bin/console mautic:campaigns:update >/dev/null 2>&1
/bin/console mautic:campaigns:trigger/dev/null 2>&1
/bin/console mautic:broadcasts:send --channel=email
/bin/console mautic:messages:send >/dev/null 2>&1
/bin/console mautic:emails:send >/dev/null 2>&1`

I consulted my log
[2024-10-13T16:09:01.864954+02:00] console.CRITICAL: Error thrown while running command “‘mautic:emails:send’”. Message: “Command “mautic:emails:send” is not defined. Did you mean one of these? mautic:broadcasts:send mautic:email:fetch mautic:emails:fetch mautic:messages:send” {“exception”:“[object] (Symfony\Component\Console\Exception\CommandNotFoundException(code: 0): Command "mautic:emails:send" is not defined.\n\nDid you mean one of these?\n mautic:broadcasts:send\n mautic:email:fetch\n mautic:emails:fetch\n mautic:messages:send at /home/cach2435/AUTRES-SITES/apprendre-le-fengshui.com/email/vendor/symfony/console/Application.php:720)”,“command”:“‘mautic:emails:send’”,“message”:“Command "mautic:emails:send" is not defined.\n\nDid you mean one of these?\n mautic:broadcasts:send\n mautic:email:fetch\n mautic:emails:fetch\n mautic:messages:send”} {“hostname”:“floride.o2switch.net”,“pid”:3406464}

I don’t understand because my CRON mautic:emails:send exist
/bin/console mautic:emails:send >/dev/null 2>&1`

If you use qeueing, your cron job command is not up to date anymore:
https://docs.mautic.org/en/5.x/configuration/cron_jobs.html#process-email-queue-cron-job

That one will process your queue:
php /path/to/mautic/bin/console messenger:consume email

Thank you very much @dirk_s
Indeed, there is a clear improvement by adding .
console messenger:consume email
I receive emails.
I will do other tests tonight to see if everything works normally
Have a great day

1 Like