# Cronjob definitions

**URL:** <https://forum.mautic.org/t/cronjob-definitions/21248>\
**Category:** Product Support\
**Created:** [October 12, 2021, 9:53pm UTC](https://forum.mautic.org/t/cronjob-definitions/21248 "2021-10-12T21:53:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![miamiman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/miamiman/32/1118_2.png) [@miamiman](https://forum.mautic.org/u/miamiman)\
**Post date:** [October 12, 2021, 9:53pm UTC](https://forum.mautic.org/t/cronjob-definitions/21248/1 "2021-10-12T21:53:56Z")

</div>

Not apparent from the documentation.

What is the difference between? And how to use correctly?

- mautic:email:process
- mautic:emails:send
- mautic:broadcasts:send
- mautic:messages:send

Thank you.

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 12, 2021, 11:52pm UTC](https://forum.mautic.org/t/cronjob-definitions/21248/2 "2021-10-12T23:52:46Z")

</div>

> [@Mautic Command Options and Arguments](https://forum.mautic.org/t/mautic-command-options-and-arguments/18638):
>
> Threw together a quick and dirty list of cron/ssh commands with a list of options and the explanation. I got this info by running --help with the most commonly used commands. Update contacts in smart segments based on new contact data. mautic:segments:update [options] mautic:segments:rebuild Options: -b, --batch-limit[=BATCH-LIMIT] Set batch size of contacts to process per round. Defaults to 300. [default: 300] -m, --max-contacts[=MAX-CONTACTS] Set max number of contacts to process per s…

> [@Found some new CLI commands in 4.0 release](https://forum.mautic.org/t/found-some-new-cli-commands-in-4-0-release/20643):
>
> Found some interesting console commands after upgrading to 4.0. You can see for yourself by running your cron without the function but adding –raw example \*\* your-cron-prefix/my-mautic/my-mautic-subdomain/bin/console --raw\*\* will give you this output: about Display information about the current project help Display help for a command list List commands assets:install …

---

<div class="post-metadata">

**Author:** ![miamiman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/miamiman/32/1118_2.png) [@miamiman](https://forum.mautic.org/u/miamiman)\
**Post date:** [October 13, 2021, 1:42pm UTC](https://forum.mautic.org/t/cronjob-definitions/21248/3 "2021-10-13T13:42:32Z")

</div>

Thanks EJL, but still have further questions.

Per documentation you provided for Mautic 4:

`mautic:emails:send` - Processes SwiftMail’s mail queue.  
**SwiftMail only?**

`mautic:queue:process` - Process queues.  
**For email sending if set?**

Thanks,

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [October 13, 2021, 8:37pm UTC](https://forum.mautic.org/t/cronjob-definitions/21248/4 "2021-10-13T20:37:00Z")

</div>

@miamiman

> [@miamiman](#):
>
> `mautic:emails:send` - Processes SwiftMail’s mail queue.  
> **SwiftMail only?**

Swiftmail is the transport for all email ----\> API or SMTP

> [@miamiman](#):
>
> `mautic:queue:process` - Process queues.  
> **For email sending if set?**

It is my understanding that this is only for Rabbit or Beanstalk. Nothing to do with email

---

<div class="post-metadata">

**Author:** ![miamiman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/miamiman/32/1118_2.png) [@miamiman](https://forum.mautic.org/u/miamiman)\
**Post date:** [October 13, 2021, 8:51pm UTC](https://forum.mautic.org/t/cronjob-definitions/21248/5 "2021-10-13T20:51:07Z")

</div>

Awesome. Thanks.
