# Sending mails takes very long in Version 5

**URL:** <https://forum.mautic.org/t/sending-mails-takes-very-long-in-version-5/31271>\
**Category:** Product Support\
**Created:** [March 14, 2024, 3:15pm UTC](https://forum.mautic.org/t/sending-mails-takes-very-long-in-version-5/31271 "2024-03-14T15:15:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [March 14, 2024, 3:15pm UTC](https://forum.mautic.org/t/sending-mails-takes-very-long-in-version-5/31271/1 "2024-03-14T15:15:20Z")

</div>

**Your software**  
My Mautic version is: 5.0.3  
My PHP version is: 8.1.27  
My Database type and version is:

**Your problem**  
My problem is: queue of 700 messages takes 1 hour to send.

Steps I have tried to fix the problem:

I’m using the following crontab script from Joey Keller:

- 
  - 
    - 
      - 
        - /bin/bash /usr/local/bin/mauticcrons.sh

if [-z “$(ls -A /var/www/mautic/var/spool)”]; then

```
    php $MAUTICCONSOLE mautic:broadcasts:send --limit=50
    php $MAUTICCONSOLE mautic:campaigns:rebuild --batch-limit=300
    php $MAUTICCONSOLE mautic:segment:update --batch-limit=900
    php $MAUTICCONSOLE mautic:campaigns:trigger
    php $MAUTICCONSOLE mautic:import --limit=500
    php $MAUTICCONSOLE mautic:webhooks:process
    php $MAUTICCONSOLE mautic:reports:scheduler
    php $MAUTICCONSOLE mautic:maintenance:cleanup --days-old=365

```

else  
php $MAUTICCONSOLE mautic:broadcasts:send --limit=200  
php $MAUTICCONSOLE mautic:emails:send --message-limit=200  
fi
