0

Our last mailing stopped after 2000 out of about 3400 being sent. I aborted that and created a new mailing (trying to target the rest of the intended recipients). This job has now stopped att 1000 of the 2308 intended.

The mailing job log looks ok, but I can't find any real result codes.

We are using an SMTP relay with https://mailersend.com which, as far as I can see, reports no errors.

Our mailing job runs on every invocation (cronjob runs every 5 minutes), sending 200 per batch with 1 second delay between each mail.

Any tips on how to debug this is appreciated!

Update: The Mailing Scheduler job probably crashes

The mailing jobs around when it actually sent anything shows two log entries:

Starting execution of Mailings scheduler

and

Finished execution of Mailings scheduler with result: Success (a:1:{s:9:"processed";i:0;})

After some time only the "Starting..." is logged, where would a reason for not completing be shown?

I also now discovered that the "Reminder sender" job hadn't been executed since the time when the mailing sender stopped. If i pause the mailing the "Reminder sender" job executes again.

I am guessing that jobs execute in some non-random order and that the mailer sender jobs runs before the "Reminder sender". This would then indicate that the scheduler "crashes" when it tries to execute the next batch of mailings. Is this a clue?

Also running the Mailing Scheduler job manually from "Administer->Scheduled jobs" results in a completely white screen...

Update: Where is the error code from the SMTP send?

We discovered that the root cause for this was that our SMTP relay service just recently had introduced a daily request limit of 1000. Duh!

According to their documentation they will then return error code 429 on that request.

So to answer the question in the title, the question becomes "Where do I find the return code for the SMTP request and why does the mail scheduler stop/crash for this error code rather than displaying it somewhere?"

3
  • A couple of things to consider - have you sent bigger email sets in the past or is this the first time? What SMTP service are you using? How often is your mailing cron running? Some of the answers will help direct where best to look. Commented Apr 7, 2022 at 9:15
  • Thanks. Updated with some answers. We have sent many times over the years but only twice using mailersend, both successful. And there has probably been a few upgrades of CiviCRM since the last mailing.
    – thoni56
    Commented Apr 7, 2022 at 9:22
  • Ok so probably focussing on the WSOD when you run the job manually might be the best way to see whats going wrong. And yes, if the cron fails it will not run other jobs. Commented Apr 8, 2022 at 10:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.