# Issues with false sending in mautic 5

**URL:** <https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [October 24, 2024, 11:06am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924 "2024-10-24T11:06:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 24, 2024, 11:06am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/1 "2024-10-24T11:06:13Z")

</div>

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

**Your problem**  
My problem is: I am trying to use Amazon SES. When I go to the config email section and put in my ses credentials then it works fine. I can get the test email. When I go to contacts and select a contact and try to email them from there it says it sent fine however nothing is actually sent. My SES shows no usage and I don’t get the email at my specified email. I’ve tried both using the docker version and just installing it to my digital ocean droplet using composer. I’m on Ubuntu server with digital ocean

Steps I have tried to fix the problem:  
Checked tables exist  
Checked permissions  
No email is being queued for some reason  
I’ve set everything in the queue config to doctrine://default

Any help is appreciated

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [October 24, 2024, 10:15pm UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/2 "2024-10-24T22:15:06Z")

</div>

Are you using doctrine as queue?  
Check in your database if the table message\_messages is full. If it has content, it means that mautic “sent” the emails but the worker hasn’t yet actually sent the emails to your email provider.

---

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 25, 2024, 1:00am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/3 "2024-10-25T01:00:06Z")

</div>

> [@rcarabelli](#):
>
> Check in your database if the table message\_messages

thanks for the response. When i set it to doctrine in the queue settings it doesnt work. I checked the table right after sending an email and it shows:  
mysql\> SHOW TABLES LIKE ‘message\_messages’;  
Empty set (0.00 sec)

when i set it back to sync it works but i prefer to queue the messages. Any idea whats happening?

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [October 25, 2024, 1:44am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/4 "2024-10-25T01:44:53Z")

</div>

Have you configured the cron jobs?

---

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 25, 2024, 2:33am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/5 "2024-10-25T02:33:56Z")

</div>

yes i have

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:segments:update

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:campaigns:trigger

- 
  - 
    - 
      - 
        - php /var/www/html/bin/console mautic:emails:send

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [October 25, 2024, 2:57am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/6 "2024-10-25T02:57:06Z")

</div>

segments update ok  
campaigns trigger \<— this supposedly will fill the message\_messages table with the emails to be sent  
emails send \<— can’t remember what this does  
You still need a mechanism to run “messenger:consume email” to process the messages at table message\_messages, the issue is that you are not filling that table.  
Sure that you configured doctrine correctly in queue?

---

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 25, 2024, 3:18am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/7 "2024-10-25T03:18:39Z")

</div>

in queue all i put was doctine://default for both options in config–\>queue

was there something else to be done?

ill add messenger:consume email

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [October 25, 2024, 3:33am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/8 "2024-10-25T03:33:00Z")

</div>

Consume email has to be done differently because it’s a worker that will run each time a cron job is triggered, so you will end crashing the server very soon.  
There are several ways to do this, but the main issue is discover why you are not being able to fill the messages table.

---

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 25, 2024, 3:40am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/9 "2024-10-25T03:40:42Z")

</div>

i set consume like this

\*/15 \* \* \* \* php /var/www/html/bin/console messenger:consume email

every 15 min…

i think i may have realizes that the messages table isnt getting created for some weird reason

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [October 25, 2024, 3:52am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/10 "2024-10-25T03:52:40Z")

</div>

it will crash your server in some hours, I can help you tomorrow.

---

<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:** [October 25, 2024, 5:54am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/11 "2024-10-25T05:54:02Z")

</div>

If you run your command every 15 min, you need to make sure it’s only alive for 15 min.

`*/15 * * * * php /var/www/html/bin/console messenger:consume email --time-limit=870`

This will run the email sending for 14 minutes and 30 seconds (give a 30s rest to your Mautic, it deserves it.) So you won’t have concurrent sending.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [October 25, 2024, 7:27am UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/12 "2024-10-25T07:27:05Z")

</div>

I hope its just a typo here…  
Its called “doctrine” with an r in between.

---

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 25, 2024, 4:56pm UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/13 "2024-10-25T16:56:06Z")

</div>

> [@joeyk](#):
>
> \*/15 \* \* \* \* php /var/www/html/bin/console messenger:consume email --time-limit=870

thank you i will try that

---

<div class="post-metadata">

**Author:** ![sks81](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sks81/32/12605_2.png) [@sks81](https://forum.mautic.org/u/sks81)\
**Post date:** [October 25, 2024, 4:56pm UTC](https://forum.mautic.org/t/issues-with-false-sending-in-mautic-5/33924/14 "2024-10-25T16:56:44Z")

</div>

thanks for that. I fixed it but that wasnt the culprit. I’m still having the issue. I’ll continue to troubleshoot
