Mautic Community Forums

Scheduled Emails in campaign builder not sending?

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



image%203.png



image%202.png

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! :slight_smile:

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

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.

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

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.

I apply this changes here : https://github.com/mautic/mautic/pull/1100

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

Please help

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

@escopecz :

here is the path to my mautic : http://screencast.com/t/uvjtuxmBCvpE
here is my crons path : http://screencast.com/t/NpLOvwYGt
here is the cron log : 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
i received the test email on my gmail : http://screencast.com/t/BpbnI3JcVx
here is my leads : http://screencast.com/t/9IxUwZK3C1s
here is my list : http://screencast.com/t/fsfpOp4E
here is my actions : http://screencast.com/t/SVWcHJLl5Bo
here is my trigger : http://screencast.com/t/lVdCNH2d
here is my email : http://screencast.com/t/7h8Y3mBEv
here is my campaigns : http://screencast.com/t/ExaIx3asH3z

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

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

I use hawkhost shared hosting

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

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:

... env=prod> ...

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

... env=prod > ...

[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

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:

... env=prod> ...

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

... env=prod > ...

done that but still not sending emails

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

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

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

setup the cron : http://screencast.com/t/hNPr9wdf5Jt

check the cron runs : 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

and still no email sent from campaign

what should i do next ?

Please help

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

i use 2GB VULTR VPS

Please help

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

Ok. And so far still not resolved