# How to limit quantity of messages sent per 24 hours period?

**URL:** <https://forum.mautic.org/t/how-to-limit-quantity-of-messages-sent-per-24-hours-period/16539>\
**Category:** Product Support\
**Created:** [October 13, 2020, 4:50am UTC](https://forum.mautic.org/t/how-to-limit-quantity-of-messages-sent-per-24-hours-period/16539 "2020-10-13T04:50:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xuzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xuzo/32/3396_2.png) [@xuzo](https://forum.mautic.org/u/xuzo)\
**Post date:** [October 13, 2020, 4:50am UTC](https://forum.mautic.org/t/how-to-limit-quantity-of-messages-sent-per-24-hours-period/16539/1 "2020-10-13T04:50:09Z")

</div>

**Your software**  
My Mautic version is:3.1.1  
My PHP version is:73.

**Your problem**  
This is my objective:

- Have a campaign created from a segment with 300 contacts in it
- Send 100 messages per day for a total sending time of 72 hours
- Emails are paced to be sent with a delay between emails like this:

`2,5,8,10,13,15,17,20,22,24,27,31,35,38,42,45,48,50,53,57 * * * * php /var/www/html/mautic/bin/console mautic:emails:send >/dev/null 2>&1`

My settings are:

How should email be handled?  
**Queue**  
Message limit for queue processing  
**1**

I’m aware there is a limit I can append to cron, but on what command and what is the syntax for this? And is this even possible?

 ![2020-10-13 11_41_00-Configuration _ Mautic](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/8022afd39c5881d79540ee048a6fd3d31621fadb.png)

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [October 13, 2020, 5:33am UTC](https://forum.mautic.org/t/how-to-limit-quantity-of-messages-sent-per-24-hours-period/16539/2 "2020-10-13T05:33:34Z")

</div>

is there a reason for the specific minutes of the hour you are sending?  
and would you be interested in only sending during daylight times, I would do a send of 20 mails per hour for a period of 5 hours

you could do the following  
\*/3 9 \* \* \* php /var/www/html/mautic/bin/console mautic:emails:send  
\*/3 9 \* \* \* php /var/www/html/mautic/bin/console mautic:broadcasts:send  
\*/3 10 \* \* \* php /var/www/html/mautic/bin/console mautic:emails:send  
\*/3 10 \* \* \* php /var/www/html/mautic/bin/console mautic:broadcasts:send  
\*/3 11 \* \* \* php /var/www/html/mautic/bin/console mautic:emails:send  
\*/3 11 \* \* \* php /var/www/html/mautic/bin/console mautic:broadcasts:send  
\*/3 12 \* \* \* php /var/www/html/mautic/bin/console mautic:emails:send  
\*/3 12 \* \* \* php /var/www/html/mautic/bin/console mautic:broadcasts:send  
\*/3 13 \* \* \* php /var/www/html/mautic/bin/console mautic:emails:send  
\*/3 13 \* \* \* php /var/www/html/mautic/bin/console mautic:broadcasts:send

Keep the limit for queueing set to 1, this will send out 20 mails per hour for 5 hours from 9am to 1pm regulating in 100 mails per day.

---

<div class="post-metadata">

**Author:** ![xuzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/xuzo/32/3396_2.png) [@xuzo](https://forum.mautic.org/u/xuzo)\
**Post date:** [October 13, 2020, 10:30am UTC](https://forum.mautic.org/t/how-to-limit-quantity-of-messages-sent-per-24-hours-period/16539/3 "2020-10-13T10:30:31Z")

</div>

The reason for specific minutes is not to get nailed by Gsuite for sending with an automated tool, so I created these “randomish” intervals, I might use SystemD later if I can get it working…

I’m looking for a “set and let it run” option, someone told me that with Lemlist, you can have a whole bunch of campaigns all over the place, and you set your whole install to send more than say 300 emails a day, and it limits the sending per 24 hours, gmass has that option also, Yamm and others, attaching screen captures to explain better.

So basically, I’m looking for an option to _limit all emails from my Mautic install, across multiple campaigns and segments_, like **MAX Daily** setting.

**Could something similar to this work?**

> 2,5,8,10,13,15,17,20,22,24,27,31,35,38,42,45,48,50,53,57 \* \* \* \* php /var/www/html/mautic/bin/console mautic:emails:send -limit=300 \>/dev/null 2\>&1

 ![2020-10-13 17_27_01-gmass daily limits max send - Google Search](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e8c98c1af0a55e140be407b8b11a3ccfe55258b8.png)
