# Scheduled email issue with Anacron + SendGrid

**URL:** <https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [April 19, 2021, 10:04am UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071 "2021-04-19T10:04:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/phb/32/1165_2.png) [@phb](https://forum.mautic.org/u/phb)\
**Post date:** [April 19, 2021, 10:04am UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071/1 "2021-04-19T10:04:52Z")

</div>

**Setup**  
PHP Version 7.4.5  
MySQL 5.7  
Mautic v3.3.2  
Email API: SendGrid

**My problem is:**

Some emails are sent (confirmation, automatically - for instance) but when a wait condition is added for a campaign, seems that it’s not adding this email to the loop and nothing is showing up.

These errors are showing in the log:  
no error in the logs ☹

**Steps I have tried to fix the problem:**

First, I set up my Anacron tab with the following info, starting:

```
@hourly 0 mautic_leadlists php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:leadlists:update
@hourly 0 mautic_segments php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:segments:update
@hourly 0 mautic_campaigns_update php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:campaigns:update
@hourly 0 mautic_campaigns_trigger php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:campaigns:trigger
@hourly 0 mautic_campaigns_execute php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:campaigns:execute
@hourly 0 mautic_emails_send php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:emails:send
@hourly 0 mautic_broadcast php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:broadcast:send
@daily 0 mautic_fetch php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:email:fetch
@daily 0 mautic_import php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:import
@daily 0 mautic_social php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:social:monitoring
@weekly 0 mautic_maxmind_dl php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:iplookup:download
@weekly 0 mautic_maxmind_donotsell php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:donotsell:download
@weekly 0 mautic_maxmind php -f /srv/data/web/vhosts/mautic.mypop.fr/htdocs/bin/console mautic:max-mind:purge

```

Please note that there is no documentation on the Internet(s) about anacron + Mautic so I think this is useful as well to share it here!

My test form is live on [www.mypop.fr/nouvelle-reservation](http://www.mypop.fr/nouvelle-reservation)

To fix this: I tried to add another cronjob with lead lists but same!

The screenshot showing that there is no upcoming email \> [CleanShot 2021-04-19 at 11.26.03 · CleanShot Cloud](https://cln.sh/eqXRGnMzxUoKXeKYvyf0)  
Despite the screenshot with all actions and in pending \> [CleanShot 2021-04-19 at 11.27.03 · CleanShot Cloud](https://cln.sh/7lA2Kt4evWdGbLf45f0S)

Thank you in advance !

---

<div class="post-metadata">

**Author:** ![phb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/phb/32/1165_2.png) [@phb](https://forum.mautic.org/u/phb)\
**Post date:** [April 19, 2021, 6:25pm UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071/2 "2021-04-19T18:25:25Z")

</div>

Updates:

- Test sent email are working but not any campaign is actually sent even if emails and campaigns are being published. There are no error log on this… Any thought?

Thank you.

---

<div class="post-metadata">

**Author:** ![phb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/phb/32/1165_2.png) [@phb](https://forum.mautic.org/u/phb)\
**Post date:** [April 20, 2021, 8:52am UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071/3 "2021-04-20T08:52:32Z")

</div>

I tried to find issues on Mautic docs, nothing to add.

- No error logs in Apache either in Mautic instance. Maybe this is a hosting problem but can’t find how/why.

I will drop Mautic as a b2b tool as it’s not giving me sufficient trust to use it for a growing business and use an HubSpot or ActiveCampaign. I see this as the limit of Open Source, good learnings for my students though!

I would be happy to share my 20 yo digital marketing expertises. Find me @phb on Twitter or Slack.

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [April 22, 2021, 1:16am UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071/4 "2021-04-22T01:16:44Z")

</div>

What is the purpose of using anacron @phb?

---

<div class="post-metadata">

**Author:** ![phb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/phb/32/1165_2.png) [@phb](https://forum.mautic.org/u/phb)\
**Post date:** [April 22, 2021, 12:09pm UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071/5 "2021-04-22T12:09:49Z")

</div>

> **[Cron Vs Anacron: How to Schedule Jobs Using Anacron on Linux](https://www.tecmint.com/cron-vs-anacron-schedule-jobs-using-anacron-on-linux/)**

I did not select this on purpose. This is what the hosting provider use on their Shared Web Hosting.

---

<div class="post-metadata">

**Author:** ![Yosu\_Cadilla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yosu_cadilla/32/6206_2.png) [@Yosu\_Cadilla](https://forum.mautic.org/u/Yosu_Cadilla)\
**Post date:** [April 23, 2021, 9:14am UTC](https://forum.mautic.org/t/scheduled-email-issue-with-anacron-sendgrid/19071/6 "2021-04-23T09:14:47Z")

</div>

I would suggest that you move Mautic to a VPS.
