Mautic is not triggering Crons and Email Campaigns are not Firing on time

My Mautic version is: 2.12.0
My PHP version is: 7.1.30

My problem:

  • Mautic is not sending email using Sendgrid email API.
  • I am sending a campaign email to a larger contact list around 50K a day and 3 emails a week. So, It’s 150K contact emails a week.
  • I am not using Mautic to track web analytics or anything, just using it to send emails
  • I have uploaded and segmented all contact manually.

These are the cron jobs

  • #0,15,30,45 * * * * su daemon -s /bin/sh -c “/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:segments:update”
  • #5,20,35,50 * * * * su daemon -s /bin/sh -c “/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:campaigns:rebuild”
  • #0,15,30,45 * * * * sudo su daemon -s /bin/sh -c “/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:email:fetch”

There is something with my cron jobs. I need your advise to set the cron jobs for larger segments and bulk email. Also, how frequently should I run cache: sudo su daemon -s /bin/bash -c "/opt/bitnami/php/bin/php /opt/bitnami/apps/mautic/htdocs/app/console cache:clear --env=prod"

1, Can you try out by removing the ‘#’ in the cron job file.
2, what happening if you run manually in CLI mode with
sudo su daemon -s /bin/sh -c “/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:email:fetch

1 Like

Thanks for your response.
I have ‘#’ from cron job file and it is working. Now, I need to set day and time because I only need to send 3 emails a week.
If run it manually, It is working. But, I need to make it automated.

Cool, Just update if your issue get resolved.
Thanks

1 Like

I am getting error in the log file.

[2020-06-03 20:05:02] mautic.ERROR: SendGrid response: 400 {“response”:"[object] (SendGrid\Response: {})"}

[2020-06-03 20:05:02] mautic.ERROR: [MAIL ERROR] Substitutions are limited to 10000 bytes per personalization block. (send); Email Addresses Removed {“exception”:"[object] (Swift_TransportException(code: 0): Substitutions are limited to 10000 bytes per personalization block. at /opt/bitnami/apps/mautic/htdocs/app/bundles/EmailBundle/Swiftmailer/SendGrid/SendGridApiFacade.php:61)"}

[2020-06-03 20:05:02] mautic.ERROR: SendGrid response: 400 {“response”:"[object] (SendGrid\Response: {})"}

[2020-06-03 20:05:02] mautic.ERROR: [MAIL ERROR] Substitutions are limited to 10000 bytes per personalization block. (send); {“exception”:"[object] (Swift_TransportException(code: 0): Substitutions are limited to 10000 bytes per personalization block. at /opt/bitnami/apps/mautic/htdocs/app/bundles/EmailBundle/Swiftmailer/SendGrid/SendGridApiFacade.php:61)"}

[2020-06-03 20:22:22] mautic.NOTICE: Symfony\Component\Console\Exception\RuntimeException: The “–force” option does not exist. (uncaught exception) at /opt/bitnami/apps/mautic/htdocs/vendor/symfony/console/Input/ArgvInput.php line 217 while running console command mautic:email:fetch

[2020-06-03 20:22:37] mautic.NOTICE: Symfony\Component\Console\Exception\RuntimeException: Too many arguments, expected arguments “command”. (uncaught exception) at /opt/bitnami/apps/mautic/htdocs/vendor/symfony/console/Input/ArgvInput.php line 182 while running console command mautic:email:fetch

Contact Replies is working only when monitored folder as chosen as INBOX

If I chose any custom folder, Contact Replies is not working

Any Ideas anyone ?