# The command "console mautic:emails:send" has problem

**URL:** https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314
**Category:** General Discussion
**Created:** [October 18, 2021, 11:16am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314 "2021-10-18T11:16:33Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![wkhuynt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wkhuynt/32/535_2.png) [@wkhuynt](https://forum.mautic.org/u/wkhuynt)
#### Post date: [October 18, 2021, 11:16am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/1 "2021-10-18T11:16:33Z")

</div>

Hi,

After I run the command console mautic:emails:send, there are no message files in var/spool, however, I did not found mail in inbox.  
When I chose “send immediately”, I received message.

How to fix this issue.

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [October 18, 2021, 11:32am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/2 "2021-10-18T11:32:22Z")

</div>

before you run the send command do you see your mails in /var/spool ?

Have you checked on your ESP site in activity logs ?

---

<div class="post-metadata">

### Author: ![wkhuynt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wkhuynt/32/535_2.png) [@wkhuynt](https://forum.mautic.org/u/wkhuynt)
#### Post date: [October 18, 2021, 1:00pm UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/3 "2021-10-18T13:00:44Z")

</div>

Yes, I did, and no errors in log file.

---

<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 19, 2021, 10:16am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/4 "2021-10-19T10:16:50Z")

</div>

> [@wkhuynt](#):
>
> After I run the command console mautic:emails:send, there are no message files in var/spool, however, I did not found mail in inbox.

Can you plz answer this:

> before you run the send command do you see your mails in /var/spool ?

---

<div class="post-metadata">

### Author: ![wkhuynt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wkhuynt/32/535_2.png) [@wkhuynt](https://forum.mautic.org/u/wkhuynt)
#### Post date: [October 19, 2021, 10:49am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/5 "2021-10-19T10:49:00Z")

</div>

Yes, I did

But now, “send immediately” does not work too.  
However, I successfully sent emails by using python code.

---

<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 19, 2021, 11:03am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/6 "2021-10-19T11:03:32Z")

</div>

Hi,  
Can you plz confirm:

BEFORE running mautic:emails:send, there were emails in the spool.  
AFTER running mautic:emails:send there were no emails in the spool.

---

<div class="post-metadata">

### Author: ![wkhuynt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wkhuynt/32/535_2.png) [@wkhuynt](https://forum.mautic.org/u/wkhuynt)
#### Post date: [October 19, 2021, 11:15am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/7 "2021-10-19T11:15:55Z")

</div>

before run the command, there were 3278 .message files in var/spool.  
after, there was no emails in this directory.

---

<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 19, 2021, 11:28am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/8 "2021-10-19T11:28:04Z")

</div>

I think it’s safe to say, that the command sent out the emails.  
By sending out I don’t mean, that successfully sent out, but they got processed and disappeared.  
It means, that you successfully ran the command.  
Now the question is where did 3278 emails go?

What do you use as smtp?

---

<div class="post-metadata">

### Author: ![wkhuynt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wkhuynt/32/535_2.png) [@wkhuynt](https://forum.mautic.org/u/wkhuynt)
#### Post date: [October 19, 2021, 11:43am UTC](https://forum.mautic.org/t/the-command-console-mauticsend-has-problem/21314/9 "2021-10-19T11:43:51Z")

</div>

I don’t know where they go.  
Yes, I use smtp.  
In contact page, I sent immediately then I saw a message: contact page sent to [my@email.com](mailto:my@email.com), but i did not receive this email.  
But I successfully sent emails by using python with smtplib, using same config in “Email Settings” page.
