# No emails are being sent

**URL:** <https://forum.mautic.org/t/no-emails-are-being-sent/3153>\
**Category:** Product Support\
**Created:** [January 6, 2016, 5:39pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153 "2016-01-06T17:39:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamsdb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/williamsdb/32/43_2.png) [@williamsdb](https://forum.mautic.org/u/williamsdb)\
**Post date:** [January 6, 2016, 5:39pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/1 "2016-01-06T17:39:56Z")

</div>

Hi  
  
  
  
I’ve been slowly getting to grips with Mautic and like what I see but I cannot get any emails to send.  
  
  
  
I have setup Amazon SES in Configuration and when I press the “Send test email” button the email is sent and received.  
  
  
  
Next, I created both a new Template and List email. In both cases when I try and send a sample email it says that the email has been sent but nothing it received.  
  
  
  
Looking at the log for each test I can see this:  
  
  
  
mautic.ERROR: [MAIL ERROR] Unable to create a file for enqueuing Message [] []  
  
  
  
Anyone else come across this error and know how to fix it?  
  
  
  
Thanks

---

<div class="post-metadata">

**Author:** ![williamsdb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/williamsdb/32/43_2.png) [@williamsdb](https://forum.mautic.org/u/williamsdb)\
**Post date:** [January 6, 2016, 5:39pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/2 "2016-01-06T17:39:56Z")

</div>

Hi

I’ve been slowly getting to grips with Mautic and like what I see but I cannot get any emails to send.

I have setup Amazon SES in Configuration and when I press the “Send test email” button the email is sent and received.

Next, I created both a new Template and List email. In both cases when I try and send a sample email it says that the email has been sent but nothing it received.

Looking at the log for each test I can see this:

mautic.ERROR: [MAIL ERROR] Unable to create a file for enqueuing Message [] []

Anyone else come across this error and know how to fix it?

Thanks

---

<div class="post-metadata">

**Author:** ![williamsdb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/williamsdb/32/43_2.png) [@williamsdb](https://forum.mautic.org/u/williamsdb)\
**Post date:** [January 6, 2016, 5:59pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/3 "2016-01-06T17:59:31Z")

</div>

Ok so this was because I had emails set to queue rather than be sent immediately.

To fix this I did the following:

1. created a new directory

```auto
sudo mkdir /tmp/spool
```

1. gave apache permissions

```auto
sudo chown apache:apache /tmp/spool
```

1. went to Mautic -\> Configuration -\> Email Settings

2. Changed “Path to the email queue directory” from %kernel.root\_dir%/spool to /tmp/spool

Emails are now working. Hope this helps someone.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 7, 2016, 9:05am UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/4 "2016-01-07T09:05:12Z")

</div>

It seems Mautic just didn’t have the permission to create the spool directory in its root directory. Maybe it would be faster to make the permission correct for the Mautic root directory. But it’s great you’ve find a solution!

---

<div class="post-metadata">

**Author:** ![williamsdb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/williamsdb/32/43_2.png) [@williamsdb](https://forum.mautic.org/u/williamsdb)\
**Post date:** [January 7, 2016, 9:11am UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/5 "2016-01-07T09:11:03Z")

</div>

The pop-up help states that you should move the directory for the emails so that it is not accessible from the web:

> [@](#):
>
> Set the absolute path to where queued emails will be stored until sent. %kernel.root\_dir% can be used as a placeholder to the app directory in the public web root. It is advised to use a directory outside of the public web root to prevent the emails from being accessible by the public.

That’s why I moved it to /tmp/spool rather than just changing the permissions.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [January 7, 2016, 9:22am UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/6 "2016-01-07T09:22:01Z")

</div>

Ah, you are right!

---

<div class="post-metadata">

**Author:** ![williamsdb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/williamsdb/32/43_2.png) [@williamsdb](https://forum.mautic.org/u/williamsdb)\
**Post date:** [April 7, 2016, 2:22pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/7 "2016-04-07T14:22:59Z")

</div>

Just had this again and had to re-run my commands and found a slight problem in my earlier solution it should actually be:

```auto
sudo chown apache:apache /tmp/spool -R
```

---

<div class="post-metadata">

**Author:** ![giovanni](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/giovanni/32/577_2.png) [@giovanni](https://forum.mautic.org/u/giovanni)\
**Post date:** [October 13, 2016, 11:11am UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/8 "2016-10-13T11:11:05Z")

</div>

@escopecz @williamsdb I am having a similar issue. If I set send queued emails only the drip emails are sent, the test emails and trigger email (the notification when a form is completed for example) are not sent.  
What should I check?

In the log I see this error  
[2016-10-13 10:26:07] mautic.ERROR: [MAIL ERROR] Unable to create a file for enqueuing Message [] []

What does it mean?

---

<div class="post-metadata">

**Author:** ![williamsdb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/williamsdb/32/43_2.png) [@williamsdb](https://forum.mautic.org/u/williamsdb)\
**Post date:** [October 13, 2016, 12:28pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/9 "2016-10-13T12:28:10Z")

</div>

@giovanni in my case no emails were being sent whereas I think you are saying certain types are going? For me it was permissions. You can try my solution shown above ^^^ but it doesn’t sound like that will help you, sorry!

---

<div class="post-metadata">

**Author:** ![giovanni](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/giovanni/32/577_2.png) [@giovanni](https://forum.mautic.org/u/giovanni)\
**Post date:** [October 13, 2016, 12:31pm UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/10 "2016-10-13T12:31:18Z")

</div>

hi @williamsdb thank you for your prompt reply. Yes it seems that test emails and trigger emails are not sent if the email settings is set to queue. Only the emails sent to segments seem to work.

---

<div class="post-metadata">

**Author:** ![wallacefirmo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wallacefirmo/32/8967_2.png) [@wallacefirmo](https://forum.mautic.org/u/wallacefirmo)\
**Post date:** [December 28, 2022, 2:30am UTC](https://forum.mautic.org/t/no-emails-are-being-sent/3153/11 "2022-12-28T02:30:26Z")

</div>

How can I create that?
