# Scheduled Emails in campaign builder not sending?

**URL:** <https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751>\
**Category:** Product Support\
**Created:** [November 10, 2015, 6:47pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751 "2015-11-10T18:47:20Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinr](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@martinr](https://forum.mautic.org/u/martinr)\
**Post date:** [November 10, 2015, 6:47pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/1 "2015-11-10T18:47:20Z")

</div>

Hi!  
  
  
  
I’ve been trying to set up a Drip Feed email campaign in the builder.  
  
The general idea is that when a new lead submits a form to us, they get added to a smartlist and they instantly receive the first email in the drip feed. The remaining emails are scheduled to be sent out every few days from that point.  
  
I’ve attached an image of how the campaign builder has been set up below.  
  
  
  
The problem I’m encountering during testing is that none of the ‘scheduled’ emails are ever actually sent!  
  
When I sign up a dummy registration, I get added to the smartlist and I receive the first email straight away, but I never receive anything else.  
  
(For testing purposes, I change the ‘days’ of the drip feed schedule to ‘minutes’, so I should receive all the scheduled emails within minutes rather than days.)  
  
  
  
I can see from the event history on my dummy lead that all the right events are triggered, and all the emails are ‘scheduled’ to send. (I’ve also attached images of some of the event history below.)  
  
They just don’t appear to get sent to me.  
  
  
  
I think all the cron jobs are set up correctly. The first one is is set to trigger every 2 minutes. Does this look right?  
  
  
  
\*/2 \* \* \* \* php /home/martinpr/public\_html/mautic/console mautic:campaigns:trigger --env=prod  
  
\*/15 \* \* \* \* php /home/martinpr/public\_html/mautic/console mautic:campaigns:update --env=prod  
  
\*/15 \* \* \* \* php /home/martinpr/public\_html/mautic/console mautic:leadlists:update --env=prod  
  
  
  
  
  
Could there be a problem with how the campaign is actually set up in the builder?  
  
Any guidance at all would be really appreciated! ![:)]( ":)")  
  
  
  
  
  
 ![image%201.png](http://www.martinprint.com.au/images/uploaded/image%201.png)  
  
  
  
 ![image%203.png](http://www.martinprint.com.au/images/uploaded/image%203.png)  
  
  
  
 ![image%202.png](http://www.martinprint.com.au/images/uploaded/image%202.png)

---

<div class="post-metadata">

**Author:** ![martinr](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@martinr](https://forum.mautic.org/u/martinr)\
**Post date:** [November 10, 2015, 6:47pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/2 "2015-11-10T18:47:20Z")

</div>

Hi!

I’ve been trying to set up a Drip Feed email campaign in the builder.  
The general idea is that when a new lead submits a form to us, they get added to a smartlist and they instantly receive the first email in the drip feed. The remaining emails are scheduled to be sent out every few days from that point.  
I’ve attached an image of how the campaign builder has been set up below.

The problem I’m encountering during testing is that none of the ‘scheduled’ emails are ever actually sent!  
When I sign up a dummy registration, I get added to the smartlist and I receive the first email straight away, but I never receive anything else.  
(For testing purposes, I change the ‘days’ of the drip feed schedule to ‘minutes’, so I should receive all the scheduled emails within minutes rather than days.)

I can see from the event history on my dummy lead that all the right events are triggered, and all the emails are ‘scheduled’ to send. (I’ve also attached images of some of the event history below.)  
They just don’t appear to get sent to me.

I think all the cron jobs are set up correctly. The first one is is set to trigger every 2 minutes. Does this look right?

\*/2 \* \* \* \* php /home/martinpr/public\_html/mautic/console mautic:campaigns:trigger --env=prod  
\*/15 \* \* \* \* php /home/martinpr/public\_html/mautic/console mautic:campaigns:update --env=prod  
\*/15 \* \* \* \* php /home/martinpr/public\_html/mautic/console mautic:leadlists:update --env=prod

Could there be a problem with how the campaign is actually set up in the builder?  
Any guidance at all would be really appreciated! 🙂

![](http://www.martinprint.com.au/images/uploaded/image%201.png)

![](http://www.martinprint.com.au/images/uploaded/image%203.png)

![](http://www.martinprint.com.au/images/uploaded/image%202.png)

---

<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:** [November 11, 2015, 11:59am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/3 "2015-11-11T11:59:32Z")

</div>

There is a pull request which should fix your issue. To be sure, you can check Mautic logs if the error messages are the same.

[https://github.com/mautic/mautic/pull/1100](https://github.com/mautic/mautic/pull/1100)

This fix will be available in Mautic 1.2.3 or you can apply the code from that PR to your Mautic and it should work right after that.

---

<div class="post-metadata">

**Author:** ![martinr](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@martinr](https://forum.mautic.org/u/martinr)\
**Post date:** [November 15, 2015, 12:52am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/4 "2015-11-15T00:52:24Z")

</div>

Hi Escopecz,  
Thanks for the reply and this looks like it will be the solution. I’m just a bit stuck as to how to apply it? What should I do?

Thanks in advance,  
Martin

---

<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:** [November 16, 2015, 5:04pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/5 "2015-11-16T17:04:30Z")

</div>

The pull request shows what lines in what files has been changed. You can apply the changes line by line or wait for release of 1.2.3.

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 9, 2015, 4:33am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/6 "2015-12-09T04:33:16Z")

</div>

I apply this changes here : [https://github.com/mautic/mautic/pull/1100](https://github.com/mautic/mautic/pull/1100)

But still no email send from campaigns. I have setup the cron

Please help

---

<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:** [December 9, 2015, 7:41am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/7 "2015-12-09T07:41:42Z")

</div>

@jamfar can you describe the symptoms of your issue in the greater detail?

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 9, 2015, 11:56pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/8 "2015-12-09T23:56:50Z")

</div>

@escopecz :

here is the path to my mautic : [http://screencast.com/t/uvjtuxmBCvpE](http://screencast.com/t/uvjtuxmBCvpE)  
here is my crons path : [http://screencast.com/t/NpLOvwYGt](http://screencast.com/t/NpLOvwYGt)  
here is the cron log : [https://www.dropbox.com/s/cwycmy9vo1w0tm2/cron.log?dl=0](https://www.dropbox.com/s/cwycmy9vo1w0tm2/cron.log?dl=0)  
here is my mautic email configuration and test connection and send test email result : [http://screencast.com/t/8eH1bIWR8ajH](http://screencast.com/t/8eH1bIWR8ajH)  
i received the test email on my gmail : [http://screencast.com/t/BpbnI3JcVx](http://screencast.com/t/BpbnI3JcVx)  
here is my leads : [http://screencast.com/t/9IxUwZK3C1s](http://screencast.com/t/9IxUwZK3C1s)  
here is my list : [http://screencast.com/t/fsfpOp4E](http://screencast.com/t/fsfpOp4E)  
here is my actions : [http://screencast.com/t/SVWcHJLl5Bo](http://screencast.com/t/SVWcHJLl5Bo)  
here is my trigger : [http://screencast.com/t/lVdCNH2d](http://screencast.com/t/lVdCNH2d)  
here is my email : [http://screencast.com/t/7h8Y3mBEv](http://screencast.com/t/7h8Y3mBEv)  
here is my campaigns : [http://screencast.com/t/ExaIx3asH3z](http://screencast.com/t/ExaIx3asH3z)

i also made changes following this : [https://github.com/mautic/mautic/pull/1100/files?diff=split](https://github.com/mautic/mautic/pull/1100/files?diff=split)

and still NO emails from the campaign??? Please help

I use hawkhost shared hosting

---

<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:** [December 10, 2015, 8:57am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/9 "2015-12-10T08:57:20Z")

</div>

Your cron is still not working. The output is just a list of Mautic’s commands. Do you have SSH access? If so, take the command

```auto
php /home/theadve1/public_html/mautic/app/console mautic:leadlists:update
```

and execute it. What is the output?

Also, you have this in your crontab:

```auto
... env=prod> ...
```

Maybe there have to be a space, doesn’t it?

```auto
... env=prod > ...
```

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 10, 2015, 3:46pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/10 "2015-12-10T15:46:53Z")

</div>

[quote=5316:@escopecz]Your cron is still not working. The output is just a list of Mautic’s commands. Do you have SSH access? If so, take the command

```auto
php /home/theadve1/public_html/mautic/app/console mautic:leadlists:update
```

and execute it. What is the output?

Also, you have this in your crontab:

```auto
... env=prod> ...
```

Maybe there have to be a space, doesn’t it?

```auto
... env=prod > ...
```

done that but still not sending emails

---

<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:** [December 10, 2015, 3:48pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/11 "2015-12-10T15:48:29Z")

</div>

You didn’t answer what is the output of the command when you execute it via SSH

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 10, 2015, 3:50pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/12 "2015-12-10T15:50:42Z")

</div>

> [@5340:@escopecz](#):
>
> You didn’t answer what is the output of the command when you execute it via SSH

oh sorry … i forgot to answer it. I don’t have access to ssh since i’m on a shared hosting. they did not give ssh access

---

<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:** [December 10, 2015, 4:45pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/13 "2015-12-10T16:45:51Z")

</div>

Ok, I think it’s time to try this: [https://gist.github.com/escopecz/9a1a0b10861941a457f4](https://gist.github.com/escopecz/9a1a0b10861941a457f4)

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 11, 2015, 7:17am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/14 "2015-12-11T07:17:26Z")

</div>

i have install mautic to vps and apply [https://github.com/mautic/mautic/pull/1100](https://github.com/mautic/mautic/pull/1100)

setup the cron : [http://screencast.com/t/hNPr9wdf5Jt](http://screencast.com/t/hNPr9wdf5Jt)

check the cron runs : [http://screencast.com/t/4sGP0qskw6](http://screencast.com/t/4sGP0qskw6)

try to run php /srv/users/serverpilot/apps/mau/public/app/console mautic:leadlists:update : [http://screencast.com/t/k44RrJsrl](http://screencast.com/t/k44RrJsrl)

and still no email sent from campaign

what should i do next ?

Please help

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 11, 2015, 7:21am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/15 "2015-12-11T07:21:53Z")

</div>

installing php5-cli as suggested and run php /srv/users/serverpilot/apps/mau/public/app/console mautic:leadlists:update

got this result : [http://screencast.com/t/jEjhmb5T](http://screencast.com/t/jEjhmb5T)

i use 2GB VULTR VPS

Please help

---

<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:** [December 11, 2015, 7:55am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/16 "2015-12-11T07:55:17Z")

</div>

@jamfar we are discussing your issues in the Slack chat. I think it’s not necessary to discuss it here as well.

---

<div class="post-metadata">

**Author:** ![jamfar](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jamfar](https://forum.mautic.org/u/jamfar)\
**Post date:** [December 11, 2015, 8:13am UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/17 "2015-12-11T08:13:36Z")

</div>

Ok. And so far still not resolved

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/scheduled-emails-in-campaign-builder-not-sending/2751/18 "2020-02-02T22:56:29Z")

</div>


