# Mautic 5 Cronjob

**URL:** https://forum.mautic.org/t/mautic-5-cronjob/34583
**Category:** Mautic 5 Install/Upgrade Support
**Created:** [January 2, 2025, 9:02am UTC](https://forum.mautic.org/t/mautic-5-cronjob/34583 "2025-01-02T09:02:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ips](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ips/32/716_2.png) [@ips](https://forum.mautic.org/u/ips)
#### Post date: [January 2, 2025, 9:02am UTC](https://forum.mautic.org/t/mautic-5-cronjob/34583/1 "2025-01-02T09:02:04Z")

</div>

**Your software**  
My Mautic version is:5.2.1  
My PHP version is:8.3.14  
My Database type and version is:MySQL 8.0 - SSD

**Your problem**  
My problem is:

Mein Problem ist, das Cornjob-Fehlermeldung ausgegeben werden:

php console mautic:emails:send

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

Im Ordner “/home/www/xxx/html/mautic/bin/” ist folgender Befehl:

_#!/bin/sh_  
_php /home/www/xxx/html/mautic/bin/console mautic:emails:send_

Wie kann das Problem behoben werden?

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [January 2, 2025, 10:58am UTC](https://forum.mautic.org/t/mautic-5-cronjob/34583/2 "2025-01-02T10:58:11Z")

</div>

Dein Problem ist ist, das Mautic in Version 5 verändert hat wie die Warteschnalge gemanaged wird.

Ich würde das hier anschauen:

> **[Mautic 5 Cronjobs – Joey Keller](https://joeykeller.com/mautic-5-cronjobs/)**

---

<div class="post-metadata">

### Author: ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)
#### Post date: [January 3, 2025, 12:49pm UTC](https://forum.mautic.org/t/mautic-5-cronjob/34583/3 "2025-01-03T12:49:12Z")

</div>

The error states that you are trying to execute “mautic:emails:send” which is obviously not a valid CMD.

Quote your CRON and your issue will most likely go away.

I answered that in few places here. One of it:

> [@Command "mautic:campaigns:update " is not defined](https://forum.mautic.org/t/command-mauticupdate-is-not-defined/34374/6):
>
> That would be 0,15,30,45 \* \* \* \* /usr/bin/php "/var/www/html/bin/console mautic:segments:update"
