# Campaign not send email to segment

**URL:** <https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666>\
**Category:** Product Support\
**Created:** [July 28, 2016, 6:23am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666 "2016-07-28T06:23:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Massimom](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Massimom](https://forum.mautic.org/u/Massimom)\
**Post date:** [July 28, 2016, 6:23am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/1 "2016-07-28T06:23:07Z")

</div>

Hi, i have a troble with campeign and segment.  
  
  
  
Yesterday evening create a segment add a contact, then i setup a campaign as image below, and schedule publish campagin today at 7 am but nothing email was sent.  
  
Campaign trigger cron run every 16 min, campaign update cron run every 30 min, segment update cron run every 18min, process mail every 20min and fetch email every 15 min.  
  
Why emails weren’t sent?  
  
  
  
 ![campaign-1.png](http://mailing.veganocrudista.it/screen/campaign-1.png)  
  
  
  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Massimom](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Massimom](https://forum.mautic.org/u/Massimom)\
**Post date:** [July 28, 2016, 6:23am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/2 "2016-07-28T06:23:07Z")

</div>

Hi, i have a troble with campeign and segment.

Yesterday evening create a segment add a contact, then i setup a campaign as image below, and schedule publish campagin today at 7 am but nothing email was sent.  
Campaign trigger cron run every 16 min, campaign update cron run every 30 min, segment update cron run every 18min, process mail every 20min and fetch email every 15 min.  
Why emails weren’t sent?

![](http://mailing.veganocrudista.it/screen/campaign-1.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Gustavo](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Gustavo](https://forum.mautic.org/u/Gustavo)\
**Post date:** [August 13, 2016, 5:31am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/3 "2016-08-13T05:31:54Z")

</div>

Hi,

I have same issue, have you figure out, how to solve it, Thanks

---

<div class="post-metadata">

**Author:** ![Andrea](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Andrea](https://forum.mautic.org/u/Andrea)\
**Post date:** [August 13, 2016, 9:13am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/4 "2016-08-13T09:13:33Z")

</div>

Hi guys, the campaign setup seems ok to me but I sould like to know if in the upcoming emails widget do you see anything scheduled. I had the same problem and I discovered that my hosting provider does not allow me to set proper cron jobs.

Just to check it out, di you try to send a test email? It’s been recieved?

---

<div class="post-metadata">

**Author:** ![Gustavo](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Gustavo](https://forum.mautic.org/u/Gustavo)\
**Post date:** [August 13, 2016, 11:49am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/5 "2016-08-13T11:49:42Z")

</div>

Thanks Andrea, I checked and provider ables the cron jobs, checked them and are according to the Mautc guide, of course change the Path/to/mautic to the real path.  
Checked the upcoming emails and nothing. :(, nevertheless I can send single emails, or if the campaign is from a form works. But it does not when using segments. Any advise? Thank you.

---

<div class="post-metadata">

**Author:** ![Adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@Adam](https://forum.mautic.org/u/Adam)\
**Post date:** [August 13, 2016, 3:06pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/6 "2016-08-13T15:06:19Z")

</div>

You had your web host add the crons? Can you post what they added?

---

<div class="post-metadata">

**Author:** ![Gustavo](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Gustavo](https://forum.mautic.org/u/Gustavo)\
**Post date:** [August 14, 2016, 1:16am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/7 "2016-08-14T01:16:57Z")

</div>

Hi @Adam Have you created a campaign using as entry point the segments, with no form, example, you add manually your leads, then you have a campaign that triggers when leads is added to segment. Please advise, if you know. I have tried and is not triggering. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![theatereleven](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@theatereleven](https://forum.mautic.org/u/theatereleven)\
**Post date:** [August 14, 2016, 4:34pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/8 "2016-08-14T16:34:16Z")

</div>

I’ll setup a segment and try and kick off a campaign from it right now. Stay tuned…

---

<div class="post-metadata">

**Author:** ![TrippJJJ](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@TrippJJJ](https://forum.mautic.org/u/TrippJJJ)\
**Post date:** [August 14, 2016, 5:02pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/9 "2016-08-14T17:02:48Z")

</div>

Try “php-cli” before your cron entry, i had same problem cron jobs not working, change from php to php-cli, might fix it

---

<div class="post-metadata">

**Author:** ![liquid01](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@liquid01](https://forum.mautic.org/u/liquid01)\
**Post date:** [August 15, 2016, 7:34am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/10 "2016-08-15T07:34:18Z")

</div>

What version of Mautic do you have currently installed? I had the same problem when I updated to version 2.1 on the 12th of August. I had a backup so I rolled back to version 2.0.1 and everything worked fine again… So it might be a bug in the 2.1 version that is responsible.

---

<div class="post-metadata">

**Author:** ![ethanzinho](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@ethanzinho](https://forum.mautic.org/u/ethanzinho)\
**Post date:** [October 21, 2016, 9:38am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/11 "2016-10-21T09:38:23Z")

</div>

Has anyone found a solution to this?

We are having the same problem: Created a campaign (see image). When I add an individual lead, it seems to work. But added a segment of about 100 people, they got the welcome email, but then the scheduled email did not send.

Tried updating Mautic, but this does not seem to have resolved the issue. Talked to our dev and he does not seem to think it is a cronjob problem.

Any help/advice would be much appreciated.

[http://imgur.com/WofPGOu](http://imgur.com/WofPGOu)

---

<div class="post-metadata">

**Author:** ![AlexanderAhlsen](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@AlexanderAhlsen](https://forum.mautic.org/u/AlexanderAhlsen)\
**Post date:** [November 30, 2016, 10:17pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/12 "2016-11-30T22:17:35Z")

</div>

Facing just the same problem!

---

<div class="post-metadata">

**Author:** ![cpotter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cpotter/32/136_2.png) [@cpotter](https://forum.mautic.org/u/cpotter)\
**Post date:** [December 1, 2016, 8:33pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/13 "2016-12-01T20:33:12Z")

</div>

Same for us. With have a beautiful emailing software (2.3.0) that can’t sends emails …

Some errors in the logs with PHPMailer and MailJet SMTP gateways, issue created [https://github.com/mautic/mautic/issues/3040](https://github.com/mautic/mautic/issues/3040)

---

<div class="post-metadata">

**Author:** ![JacobCZ](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@JacobCZ](https://forum.mautic.org/u/JacobCZ)\
**Post date:** [February 28, 2017, 9:22pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/14 "2017-02-28T21:22:08Z")

</div>

Hey Mautic family 🙂

I have same problem

- email is sent if set-up as ACTION in the FORM
- email is not sent if its part of the CAMPAIGN (and it doesnt matter if CONTACT SOURCE is CONTACT SEGMENT or CAMPAIGN FORM)

Anybody same experience? Is there any progress about all questions above? Thanks

---

<div class="post-metadata">

**Author:** ![Prue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/prue/32/7552_2.png) [@Prue](https://forum.mautic.org/u/Prue)\
**Post date:** [March 1, 2017, 11:39pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/15 "2017-03-01T23:39:26Z")

</div>

Same here. My immediate download is sent, the welcome sequence works, the user should then immediately receive an educational email. The education email is not being triggered. I’m on version 2.5.1 and can’t roll back as it was a fresh install when I switched to a new shared host.

---

<div class="post-metadata">

**Author:** ![Ashwini\_Hinduja](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Ashwini\_Hinduja](https://forum.mautic.org/u/Ashwini_Hinduja)\
**Post date:** [March 2, 2017, 4:41am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/16 "2017-03-02T04:41:13Z")

</div>

Step 1: Create a cron file  
command : crontab -e

Step 2: Then add the following code in the cron file  
\*/4 \* \* \* \* sudo php /var/www/html/your\_application\_name/app/console mautic:campaigns:rebuild -f  
\*/5 \* \* \* \* sudo php /var/www/html/your\_application\_name/app/console mautic:campaigns:trigger -f

for every 4 minutes the campaigns will rebuild , and for every 5 minutes the campaigns will trigger.

For example if you are publishing a campaign at 9.00 am , the campaign will triggered at 9.05 am you can get email by 9.05 am

This works out for me.

Another method:

You can install cronfig plugin to send the scheduled mails

---

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://forum.mautic.org/u/Alejandro)\
**Post date:** [March 9, 2017, 3:33pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/17 "2017-03-09T15:33:38Z")

</div>

i´ve been struggling with this same problem, and i´ve found the solution, at least, for mine.  
When i started designing the campaigns i choose to create ¨New Template Email¨ for each action.  
None e-mail were sended.

Today i created a new one, but ¨New Segment Email¨ type.  
This way i can send them, but, i cant add them to the campaigns.

Is a partial solution.  
I hope i can solve the whole issue soon.

---

<div class="post-metadata">

**Author:** ![marcocevoli](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@marcocevoli](https://forum.mautic.org/u/marcocevoli)\
**Post date:** [May 27, 2017, 1:21pm UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/18 "2017-05-27T13:21:58Z")

</div>

Old thread, but I’ve found a solution for the same problem on our Siteground shared hosting server.  
Cron jobs were working fine until I updated Mautic. Apparently. In fact, what I did was to update PHP, more or less in the same days, so I thought the issue was related to Mautic, but instead, was related to PHP version. Our cronjobs started with “php …” and this path was incorrect. Once I put `/usr/local/php70/bin/php` everything started to work again.

tl;dr: Check the bin/php exact path for your PHP version and use that path in your cron jobs.

Regards  
Marco

---

<div class="post-metadata">

**Author:** ![jirehlcarlos](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@jirehlcarlos](https://forum.mautic.org/u/jirehlcarlos)\
**Post date:** [July 30, 2017, 9:36am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/19 "2017-07-30T09:36:48Z")

</div>

I also have the same issue. My campaigns are not sending at all. I tried changing the cron job to this as I am using php version 7.0. I wonder what the problem is.

- 
  - 

```
* * * /opt/php70/bin/php /home/johnsmith007/public_html/mautic/app/console mautic:campaigns:trigger -f --env=prod
```

---

<div class="post-metadata">

**Author:** ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)\
**Post date:** [August 1, 2017, 5:29am UTC](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666/20 "2017-08-01T05:29:22Z")

</div>

Could you please try to execute the command out of cron via command line?

```auto
/opt/php70/bin/php /home/johnsmith007/public_html/mautic/app/console mautic:campaigns:trigger -f --env=prod
```

What is the output?

[Next page](https://forum.mautic.org/t/campaign-not-send-email-to-segment/4666.md?page=2)
