# Mautic:emails:send" is not defined

**URL:** <https://forum.mautic.org/t/mauticsend-is-not-defined/30971>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [February 20, 2024, 11:18am UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971 "2024-02-20T11:18:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuelbozzo](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@manuelbozzo](https://forum.mautic.org/u/manuelbozzo)\
**Post date:** [February 20, 2024, 11:18am UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/1 "2024-02-20T11:18:57Z")

</div>

**Your software**  
My Mautic version is: 5.0.3  
My PHP version is: 8.0.28  
My Database type and version is: MariaDB 10.5

**Your problem**  
My problem is: Command “mautic:emails:send” is not defined.

These errors are showing in the log: mautic.ERROR: Symfony\Component\Console\Exception\CommandNotFoundException: Command “mautic:emails:send” is not defined. Did you mean one of these? mautic:broadcasts:send mautic:email:fetch mautic:emails:fetch mautic:messages:send (uncaught exception) at /var/www/html/mautic/vendor/symfony/console/Application.php line 720 while running console command `UNKNOWN` [stack trace] #0 /var/www/html/mautic/vendor/symfony/framework-bundle/Console/Application.php(116): Symfony\Component\Console\Application-\>find() #1 /var/www/html/mautic/vendor/symfony/console/Application.php(259): Symfony\Bundle\FrameworkBundle\Console\Application-\>find() #2 /var/www/html/mautic/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application-\>doRun() #3 /var/www/html/mautic/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application-\>doRun() #4 /var/www/html/mautic/bin/console(16): Symfony\Component\Console\Application-\>run() #5 {main} {“hostname”:“mautic.\*\*\*.it”,“pid”:303005}

Steps I have tried to fix the problem:  
I set the right permission on folder, I already check the SMTP server

---

<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:** [February 20, 2024, 1:19pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/2 "2024-02-20T13:19:34Z")

</div>

Mautic 5 does email sending a little bit differently see here, for hints: [Changing how Mautic 5 handles email from send immediately to queue - #4 by hotstryker](https://forum.mautic.org/t/changing-how-mautic-5-handles-email-from-send-immediately-to-queue/30374/4)

---

<div class="post-metadata">

**Author:** ![manuelbozzo](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@manuelbozzo](https://forum.mautic.org/u/manuelbozzo)\
**Post date:** [February 20, 2024, 1:30pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/3 "2024-02-20T13:30:44Z")

</div>

What is the send:email command a substitute for sending the email immediately in version 5?

---

<div class="post-metadata">

**Author:** ![manuelbozzo](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@manuelbozzo](https://forum.mautic.org/u/manuelbozzo)\
**Post date:** [February 20, 2024, 2:07pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/4 "2024-02-20T14:07:57Z")

</div>

I found this php “/var/www/html/mautic/bin/console messenger:consume email”  
But its not clear to me how this command work: i read here about a worker that i guess it is already started. And i can stop it with “messenger:stop-workers”, but how this worker “work” for a test how can i do ?

---

<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:** [February 20, 2024, 3:37pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/5 "2024-02-20T15:37:25Z")

</div>

Have you started it? If you have not, its not started. It something you have to setup.

---

<div class="post-metadata">

**Author:** ![manuelbozzo](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@manuelbozzo](https://forum.mautic.org/u/manuelbozzo)\
**Post date:** [March 4, 2024, 1:27pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/6 "2024-03-04T13:27:27Z")

</div>

i got it, now i receive this error : You cannot receive messages from the Messenger SyncTransport.

---

<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:** [March 4, 2024, 2:32pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/7 "2024-03-04T14:32:59Z")

</div>

That is probably because you have not configured the settings here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/75394d854b8ea4a51c4f99c3b43b89ad389d3e71.png)

---

<div class="post-metadata">

**Author:** ![manuelbozzo](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@manuelbozzo](https://forum.mautic.org/u/manuelbozzo)\
**Post date:** [March 4, 2024, 2:55pm UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/8 "2024-03-04T14:55:04Z")

</div>

Ah okay thanks. But i dont understand why it tells me"cannot receive messages from the Messenger SyncTransport", i dont get why i have to compile that Queue page that u sent to me for solve my problem.  
I have also some errors in the Maxmind crontab.  
0 0 \* \* 0 php /var/www/html/mautic/bin/console mautic:donotsell:download  
0 0 \* \* 0 php /var/www/html/mautic/bin/console mautic:max-mind:purge

 ![Mautic_cron_errors](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2486c739c35b2ef8d8e06bce5b446a0e2ffea13a.jpeg)

Here is my immage of all the problems that i encountered on the new crontab for 5.0

---

<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:** [March 5, 2024, 8:06am UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/9 "2024-03-05T08:06:55Z")

</div>

Well when using sync transport you do not really need a queue and consume jobs.

Messenger handles messages from queue, if you use sync transport you are not using a queue.

---

<div class="post-metadata">

**Author:** ![manuelbozzo](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@manuelbozzo](https://forum.mautic.org/u/manuelbozzo)\
**Post date:** [March 11, 2024, 8:46am UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/10 "2024-03-11T08:46:15Z")

</div>

Perfect, where i can go to check that i am using the sync transport ?  
For Maxmind cron job do you have some tips ?  
Thank you in advice !

---

<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:** [March 11, 2024, 9:44am UTC](https://forum.mautic.org/t/mauticsend-is-not-defined/30971/11 "2024-03-11T09:44:31Z")

</div>

In Mautic settings as shown on the screenshot above.

I do not really have a suggestion about MaxMind, I think I would have to take a closer look at the issue, to be able to help you.
