# Crontab cronjob spooled emails

**URL:** https://forum.mautic.org/t/crontab-cronjob-spooled-emails/28168
**Category:** Product Support
**Created:** [May 28, 2023, 7:52pm UTC](https://forum.mautic.org/t/crontab-cronjob-spooled-emails/28168 "2023-05-28T19:52:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ceolteschool](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@ceolteschool](https://forum.mautic.org/u/ceolteschool)
#### Post date: [May 28, 2023, 7:52pm UTC](https://forum.mautic.org/t/crontab-cronjob-spooled-emails/28168/1 "2023-05-28T19:52:19Z")

</div>

the problem is…

all emails are queued and place in spool folder.  
and thats all. they are not go out.

they starts to go out if I manually run this command  
php /var/www/html/bin/console swiftmailer:spool:send --message-limit=1000\>

cron jobs do not start

below is my crontab file.

paths are correct. checked.

# Cron jobs for Mautic 2

#\* \* \* \* \* php /var/www/html/app/console mautic:segments:update

#\* \* \* \* \* php /var/www/html/app/console mautic:campaigns:update

#\* \* \* \* \* php /var/www/html/app/console mautic:campaigns:trigger

# 

# Cron jobs for Mautic 3

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:segments:update \>/dev/null 2\>&1

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:campaigns:update \>/dev/null 2\>&1

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:campaigns:trigger \>/dev/null 2\>&1

#\* \* \* \* \* php /var/www/html/bin/console mautic:emails:send \>/dev/null 2\>&1

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console swiftmailer:spool:send --message-limit=\>

- 
  - 
    - 
      - 
        - root /bin/echo “cron works” \>\> /tmp/file

---

<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: [May 29, 2023, 11:11am UTC](https://forum.mautic.org/t/crontab-cronjob-spooled-emails/28168/2 "2023-05-29T11:11:11Z")

</div>

Hi, in your cron you don’t have message limit defined, this command will fail.
