# Campaign stopped automatically

**URL:** <https://forum.mautic.org/t/campaign-stopped-automatically/33929>\
**Category:** Product Support\
**Created:** [October 25, 2024, 6:02am UTC](https://forum.mautic.org/t/campaign-stopped-automatically/33929 "2024-10-25T06:02:28Z")\
**Posts on this page:** 4\
**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:** [October 25, 2024, 6:02am UTC](https://forum.mautic.org/t/campaign-stopped-automatically/33929/1 "2024-10-25T06:02:28Z")

</div>

**Your software**  
My Mautic version is: 5.1.1  
My PHP version is: 8.2  
My Database type and version is:

**Your problem**  
My problem is: Campaign emails are not delivered every time, thus resulting in the campaign to be stopped, which makes it even worse, such that all other contacts not receiving the emails as well.

These errors are showing in the log:  
app.ERROR: [MAIL ERROR] Unable to send an email: There are 50 partial failures, check logs for exception reasons . {“hostname”:“mars”,“pid”:3334924}

Steps I have tried to fix the problem:  
Restart campaign for affected clients.  
Remove contact from campaign and add back to campaign.  
Remove from segment, which triggers the campaign and add back to the segment, in order to trigger the campaign again.

It is very anoying because I can’t trust if all emails of a campaign are sent.  
And when a campaign is not valid any more, the emails remain stuck in the contacts upcomoing events. So I don’t know if future emails in the queue are sent or not.

 ![Screenshot from 2024-10-25 07-51-25](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9d74a3eb832b501ac1caf72dece6108b4537b486.png)

---

<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:** [October 25, 2024, 3:03pm UTC](https://forum.mautic.org/t/campaign-stopped-automatically/33929/2 "2024-10-25T15:03:39Z")

</div>

The behavior I don’t understand is following:  
I registered the following contact via Opt-in form, but the confirmation email is not sent out! Why not?

Error Message in the notifications: Failed to execute campaign event for Max Max. IEK - Lead Source / Send Opt-In Email

 ![Screenshot from 2024-10-25 17-01-58](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/b6ddc6acd640727f49bdb689d813897256cfc2e1.png)

---

<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:** [October 29, 2024, 10:49am UTC](https://forum.mautic.org/t/campaign-stopped-automatically/33929/3 "2024-10-29T10:49:30Z")

</div>

Could this error resulting from Amazon SES running into error: “454 Throttling failure: Maximum sending rate exceeded.”?

My SES account is limited to 14 emails/second.

My cron entries look like this:  
if [-z “$(ls -A /var/www/clients/client1/web49/web/mautic/var/spool)”]; then

```
    php $MAUTICCONSOLE mautic:broadcasts:send --limit=500
    php $MAUTICCONSOLE mautic:campaigns:rebuild --batch-limit=300
    php $MAUTICCONSOLE mautic:segments: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  
php $MAUTICCONSOLE messenger:consume email --time-limit=50  
fi

Is emails:send limit 200 too much?

---

<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:** [November 5, 2024, 10:42pm UTC](https://forum.mautic.org/t/campaign-stopped-automatically/33929/4 "2024-11-05T22:42:53Z")

</div>

No, this is not the reason.  
I just filled out an opt-in form and did not get the confirmation email.  
In the Mautic backend I see the same error:  
[Send Opt-In Email / DP - Lead Source](https://example.com/s/campaigns/view/31)

Any hint?

Kind regards

Christian
