# Mautic sending email is too slow

**URL:** <https://forum.mautic.org/t/mautic-sending-email-is-too-slow/24387>\
**Category:** Product Support\
**Created:** [June 7, 2022, 4:20am UTC](https://forum.mautic.org/t/mautic-sending-email-is-too-slow/24387 "2022-06-07T04:20:25Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![carlosatfongo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carlosatfongo/32/10223_2.png) [@carlosatfongo](https://forum.mautic.org/u/carlosatfongo)\
**Post date:** [October 30, 2023, 11:57pm UTC](https://forum.mautic.org/t/mautic-sending-email-is-too-slow/24387/15 "2023-10-30T23:57:15Z")

</div>

> [@Script to replace the mautic:emails:send cronjob](https://forum.mautic.org/t/script-to-replace-the-mauticsend-cronjob/29624/7):
>
> Hey Joey There was a merged pull request regarding this multi threading sending: Relevant part is this info from kuzmany: The thing is I don’t know if this ever happened in mautic swiftmailer: Also need fix in swiftmailer [Add flock lock on message during queue flushing by Dcoutelle · Pull Request #1270 · swiftmailer/swiftmailer · GitHub](https://github.com/swiftmailer/swiftmailer/pull/1270/files) So maybe a patched is needed. This would be the patch: [https://patch-diff.githubusercontent.com/raw/swiftmail…](https://patch-diff.githubusercontent.com/raw/swiftmailer/swiftmailer/pull/1270.diff)

You’ll want to see the above post^ This patch to swiftmailer should solve your duplicate send issue. works well for us, and we were able to run multiple sending crons at the same time 😃

What we’re using for now:

```auto
sudo php /srv/mautic/bin/console mautic:emails:send --lock_mode=flock --lock-name="1" & sleep 2 & sudo php /srv/mautic/bin/console mautic:emails:send --lock_mode=flock --lock-name="2" & sleep 2 & sudo php /srv/mautic/bin/console mautic:emails:send --lock_mode=flock --lock-name="3"

```

Using the above code, we benchmarked some email tests. This code runs 3 send commands at the same time, which is about 18 emails per second to our SMTP sever… which is **too** fast. We’re going to only run 2, or about 12.5 emails per second.

---

_[View the full topic](https://forum.mautic.org/t/mautic-sending-email-is-too-slow/24387)._
