# Emails are not working (Test email from settings work)

**URL:** <https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493>\
**Category:** Product Support\
**Created:** [July 3, 2023, 1:07pm UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493 "2023-07-03T13:07:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dejan994](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dejan994](https://forum.mautic.org/u/dejan994)\
**Post date:** [July 3, 2023, 1:07pm UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493/1 "2023-07-03T13:07:35Z")

</div>

**Your software**  
My Mautic version is: 4.4.9  
My PHP version is: 8.0.2  
My Database type and version is: MYSQL 5.7

**Your problem**  
My problem is:  
Hello, I have a problem with mautic emails. I’ve set up docker container with 8.0.3 php version and set up mautic application.

I’ve set up AWS SES email as provider and when i test email through settings everything works. However if i want to send email through sections or Send Example, it returns success but nothing happens. I’ve set up cron jobs and cron logs, however everything seems fine, no errors in logs.

These errors are showing in the log:  
Cron log:  
±--------±-------±---------+  
| Channel | # sent | # failed |  
±--------±-------±---------+  
Processing message queue  
Messages sent: 0

Rebuilding contacts for segment 7  
0 total contact(s) to be added in batches of 300  
0 total contact(s) to be removed in batches of 300  
0 contact(s) affected  
Rebuilding contacts for segment 6  
0 total contact(s) to be added in batches of 300  
0 total contact(s) to be removed in batches of 300  
0 contact(s) affected

±--------±-------±---------+  
| Channel | # sent | # failed |  
±--------±-------±---------+  
Processing message queue  
Messages sent: 0

Rebuilding contacts for segment 7  
0 total contact(s) to be added in batches of 300  
0 total contact(s) to be removed in batches of 300  
0 contact(s) affected  
Rebuilding contacts for segment 6  
0 total contact(s) to be added in batches of 300  
0 total contact(s) to be removed in batches of 300  
0 contact(s) affected

Steps I have tried to fix the problem:

Changed email provider.  
Debugged through code to see if email is formed properly.  
Created cron logs.  
Added permissions to necessary folders.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [July 5, 2023, 12:15pm UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493/2 "2023-07-05T12:15:45Z")

</div>

Maybe a good starting point here would be to temporarily disable email queue and send emails immediately to see if that works.

---

<div class="post-metadata">

**Author:** ![dejan994](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dejan994](https://forum.mautic.org/u/dejan994)\
**Post date:** [July 5, 2023, 12:40pm UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493/3 "2023-07-05T12:40:13Z")

</div>

Hello, thank you for replying and trying to help.

I’ve also tried that, swapped in local.php:  
‘queue\_mode’ =\> ‘immediate\_process’.

Still no emails are being received. I’ve also checked SES to see if emails are being sent and they’re not.

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [July 5, 2023, 2:23pm UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493/4 "2023-07-05T14:23:43Z")

</div>

Does anything show in logs under: `var/logs/<filename>`. Can you follow the log file and see if any error pops up?

---

<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:** [July 5, 2023, 4:43pm UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493/5 "2023-07-05T16:43:55Z")

</div>

Additionally here is an article on the official knowledge base:

> **[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:** ![dejan994](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dejan994](https://forum.mautic.org/u/dejan994)\
**Post date:** [July 6, 2023, 10:55am UTC](https://forum.mautic.org/t/emails-are-not-working-test-email-from-settings-work/28493/6 "2023-07-06T10:55:12Z")

</div>

There is nothing in the logs. I dumped all the way through the MailerInterface and everything seems correct. I’ve also tried everything from the article.

Any suggestions would be appreciated.
