# Emails have stopped sending

**URL:** <https://forum.mautic.org/t/emails-have-stopped-sending/27626>\
**Category:** Product Support\
**Created:** [April 4, 2023, 7:15pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626 "2023-04-04T19:15:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 4, 2023, 7:15pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/1 "2023-04-04T19:15:34Z")

</div>

**Your software**  
My Mautic version is: 4.4  
My PHP version is: 7.4.33  
My Database type and version is: MariaDB 10.3.38

**Your problem**  
My problem is: Emails were being scheduled and sent properly until this week. all of a sudden they stop sending.  
I can see the email has been scheduled, (I for example see: "Scheduled to execute at April 4, 2023 4:00 pm UTC ").

The problem is they don’t send, what can be wrong?

Im sending it to spool (not direct).

I get this as output from the cronjob that sends emails:  
Triggering scheduled events  
32 total events(s) to be processed in batches of 100 contacts  
0/32 [\>---------------------------] 0%  
32/32 [============================] 100%X-Powered-By: PHP/7.4.33  
Content-type: text/html; charset=UTF-8

---

<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:** [April 5, 2023, 4:49am UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/2 "2023-04-05T04:49:55Z")

</div>

Hello!  
Triggering scheduled events will fill up the spool, but are the emails being sent out from there? Do you see emails in /var/spool ?

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 5, 2023, 5:33am UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/3 "2023-04-05T05:33:02Z")

</div>

Hi @joeyk nope, nothing in spool. the email gets scheduled at a date in the future, that date passes and nothing happens. if I undrstand the output from the cron correct, it skips the 32 emails that have been scheduled.

---

<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:** [April 5, 2023, 6:05am UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/4 "2023-04-05T06:05:08Z")

</div>

If the spool is not filled up, then campaign:trigger doesn’t do it’s job.  
Is it a marketing email? If so, then you have to be sure, that the email was not already sent to this contacts.

- Is the timezone properly set?
- When you open the campaign and look at the actions on the bottom, do you see the campaign action executed / planned (yellow color) ?

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 5, 2023, 1:12pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/5 "2023-04-05T13:12:59Z")

</div>

Timezone is set, so the system is set to UTC, Maurtic is set to UTC and all contacts is set to UTC. I see the planned email, but it doesn’t send to spool.

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 5, 2023, 3:19pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/6 "2023-04-05T15:19:08Z")

</div>

I also changed it to send direct (no date), and I get the “Campaign action triggered”, but no email is sent.

---

<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:** [April 6, 2023, 8:05am UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/7 "2023-04-06T08:05:40Z")

</div>

I can only suggest to look in the kb for now:

> **[Email sending doesn't work - here are 10 things to check - Knowledge Base](https://kb.mautic.org/article/email-sending-doesn-039%3bt-work-here-are-10-things-to-check.html)**
>
> This article will help you to identify email sending problems in Mautic.

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 6, 2023, 4:02pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/8 "2023-04-06T16:02:40Z")

</div>

Hi @joeyk , checked all of that, this is so strange, I have multiple Mautic instances, they are all clones, and one of them all of a sudden just stops working.

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 6, 2023, 4:31pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/9 "2023-04-06T16:31:07Z")

</div>

I seem to have found what’s wrong, all of a sudden Im getting some error messages (I have played around with the system and changed some things).

Its the “failed-to-read-auto-increment” error that is described here:

> [@Mautic general error 1467 failed to read auto-increment value from storage engine](https://forum.mautic.org/t/mautic-general-error-1467-failed-to-read-auto-increment-value-from-storage-engine/20861):
>
> Your software My Mautic version is:4.0 My PHP version is:7.4 My Database type and version is: MariaDB 10.3 Your problem My problem is: email queue not working and email unable to send but normal email process is working fine. These errors are showing in the log: Error 1 : [2021-09-13 09:37:05] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: “An exception occurred while executing ‘INSERT INTO dsijemail\_stats (email\_address, date\_sent, is\_read, is\_failed, v…

Is there a permanent solution to this?

---

<div class="post-metadata">

**Author:** ![CarlJohan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/carljohan/32/7016_2.png) [@CarlJohan](https://forum.mautic.org/u/CarlJohan)\
**Post date:** [April 6, 2023, 4:51pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/10 "2023-04-06T16:51:41Z")

</div>

And I think I found a solution, just run: ALTER TABLE `email_stats` AUTO\_INCREMENT =1;

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [January 25, 2024, 7:34pm UTC](https://forum.mautic.org/t/emails-have-stopped-sending/27626/11 "2024-01-25T19:34:31Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
