# Mautic is not sending email and segment not updating

**URL:** <https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912>\
**Category:** Product Support\
**Tags:** community, discussion\
**Created:** [January 25, 2021, 12:05pm UTC](https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912 "2021-01-25T12:05:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bushman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bushman/32/1001_2.png) [@bushman](https://forum.mautic.org/u/bushman)\
**Post date:** [January 25, 2021, 12:05pm UTC](https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912/1 "2021-01-25T12:05:07Z")

</div>

**Your software**  
My Mautic version is: 3.2.4, now 3.2.5  
My PHP version is: 7.4  
My Database type and version is: MySQL

**Your problem**  
My problem is: I installed mautic and everything was fine.

Then I created a form and a segment for leads building.

Then I opted in from the form through my website (including my name and email) but my detail didn’t show up in the segment and the email never send.

I checked the form result (phot below) and find out my detail was in the form result. but was not moved to segment meant for it.

 ![Results-for-BCalc-Opt-in-Form- result](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f44fffac52d89e7f4a20f64b5d1c1e19ea6e7209.png)

So I thought maybe it was issue of corn job. I contacted my hosting (hostinger) and they said I should change my path from (photo below)

“wget -O /dev/null [https://deskproof.com/public\_html/marketing/bin/console](https://deskproof.com/public_html/marketing/bin/console)”  
to “wget -O /dev/null [https://deskproof.com/public\_html/marketing/bin/console.php/](https://deskproof.com/public_html/marketing/bin/console.php/)”.

![WordPress-Dashboard-hPanel](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/009938ba9d2e4d7ab7d0be813918b3c80c4aaa37.png)

Which I did but when I try to view the corn job output on my hpannel it show the photo below:

Still nothing is showing up on my segment and email never send. The detail only show up in form result.

Please how will I make this to work properly, that is:

1. User opt-in (submit his details)
2. The form send email to the user
3. The form store the user details in a pending segment.
4. User opened the email
5. User details moved to confirmed segment.

Thanks in advance as you help me on this.

---

<div class="post-metadata">

**Author:** ![bellafronte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bellafronte/32/189_2.png) [@bellafronte](https://forum.mautic.org/u/bellafronte)\
**Post date:** [January 25, 2021, 12:20pm UTC](https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912/2 "2021-01-25T12:20:36Z")

</div>

This sounds like a cronjob problem.

Please review your Mautic cronjob configurations, the documentation has an extensive explanation for this

> **[Cron jobs](https://docs.mautic.org/en/setup/cron-jobs)**
>
> . . . . Mautic 3 introduced a new path for cron jobs bin/console if you are using the legacy Mautic 2.x series you should replace this with the older version, app/console. . . . Mautic requires a few cron jobs to handle some maintenance tasks such as...

---

<div class="post-metadata">

**Author:** ![bushman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bushman/32/1001_2.png) [@bushman](https://forum.mautic.org/u/bushman)\
**Post date:** [January 25, 2021, 2:09pm UTC](https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912/3 "2021-01-25T14:09:02Z")

</div>

Good day @bellafronte  
bin/console can it be renamed bin/console.php

because according to my hosting support (photo below)  
 ![WordPress-Dashboard-hPanel](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/009938ba9d2e4d7ab7d0be813918b3c80c4aaa37.png)

Am confuse here.

---

<div class="post-metadata">

**Author:** ![bushman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bushman/32/1001_2.png) [@bushman](https://forum.mautic.org/u/bushman)\
**Post date:** [January 25, 2021, 2:19pm UTC](https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912/4 "2021-01-25T14:19:55Z")

</div>

From my hpannel on cron job, if i click view output, below is what it shows me:

with bin/console.php

![Cron-Jobs-hPanel5](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7ac66c7868010804ba5cdcaede11bc30847b5b63.png)

with bin/console

![Cron-Jobs-hPanel4](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/842a2a8f4375eaf94d6c314c11ef17bf2619f999.png)

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [January 26, 2021, 4:32pm UTC](https://forum.mautic.org/t/mautic-is-not-sending-email-and-segment-not-updating/17912/5 "2021-01-26T16:32:53Z")

</div>

I have never seen wget in a cron. My server is running Centos 7 with Plesk panel so the format will vary based on your system, by my crons are “path/to/php/ path/to/mautic/bin/console mautic:command”

here is an example:  
/opt/plesk/php/7.3/bin/php /var/www/vhosts/mauticdirectory.com/app.mauticdirectory.com/bin/console mautic:segments:rebuild

My recommendation would be to run your commands via ssh first so you can see the output. Once you have nailed the format, copy it several times to a document and add the common command suffix like mautic:segment:rebuild, mautic:emails:send, mautic:campaigns:rebuild and so on. A nice cheat sheet for tweaking
