Problem
After sending the newsletter it shows wrong count
Example : we have 150 emails to be sent and cron throttle is 50 , So it will show only 100 email sent , thats is 150-50 = 100
If we have Cron throttle as 20 , then it will show email sent as 150-20 = 130.
Therefore total count showing is always total number of newsletter minus cron throttle.
Why this happens : The count is not incremeneted when the cron runs for the first time , Count is shown is incremeneted from the second cron run . When the the cron is run first time it shows still shows message 'newsletter sending pending'
Comments
Comment #2
sanoopuio commentedComment #3
mediengenosse commentedSame Problem here with 8.x-2.0-beta2 @ Drupal 8.9.13.
Comment #4
afagioliHad similar issues on with multilanguage installations...
Comment #5
saccard commentedSimilar Problem with Drupal 8.9.13 and Simplenews 8.x-2.0-beta2
The mails are sent every 2 hours via cron in bunches of 50. The log shows that all mails were sent (except some that were skipped). At the end of each cron run there is an entry in the log like this:
47 emails sent in 1.2 seconds, 3 skipped, 0 failed permanently, 0 failed retrying.
But not after every cron run! Ich checked the log entries and found that sometimes this entry is missing. Here is a summary of the log:
7.3.2021 20:00 50 sent
22:00 50 sent
24:00 50 sent
8.3. 02:00 44 sent 6 skipped
04:00 47 sent 3 skipped
06:00 50 sent, no sum entry in the log
08:00 50 sent
10:00 50 sent, no sum entry in the log
10:27 (cron manually triggered) 50 sent, no sum entry in the log
The simplenews status pages says it has sent a total of 291. But actually it sent 441 mails. So, every time the sum entry is missing simplenews didn't add the mails sent to the total sum. At the end all mails were sent but the count on the status page is wrong. Which is very confusing.
Comment #6
afagioli@saccard, what's your multilanguage setup?
Comment #7
saccard commented@afagioli: Only one language is used. No content ist translatable
Comment #8
afagioliThanks!
Comment #9
afagioliComment #10
adamps commentedMulti-language counting issues were fixed in #3106374: Count error if translation is missing in 3.0.0-beta1. Can anyone confirm if this bug is still present since then?
Comment #11
adamps commentedClosing as duplicate of #3181261: Random Number of Emails actually sent which although raised after this, has more diagnostics in comments.