Hi,

Cron is sending out duplicates of a newsletter with every Cron run! The site does not use Poormanscron, although I did use Poormanscron prior to installing Simplenews.

I would be glad for advice how to configure Simplenews or Cron to make absolutely sure it only sends out one instance of each newsletter!

Thanks!

Comments

rpk’s picture

Title: Sending duplciates with every Cron run - No Poormanscron » Sending duplicates with every Cron run - No Poormanscron

Here is my current configuration that sends out the multiple copies with every Cron run.

Simplenews General settings

Use cron to send newsletters: Checked
Cron throttle: 200
Mail spool expiration: Immediate

rpk’s picture

Hi all,

I really need to get this to work very soon and would appreciate any advice you can give!

Thanks!

rpk’s picture

More details on my configuration, which continues to send out multiple newsletters per cron run:

With Cron Throttle set to 100 or more multiple newsletters get sent every time Cron runs.
With Cron Throttle set to 50 no newsletters get sent when Cron runs. None at all.

I would be glad for any help!

mkrakowiak’s picture

Rpk, so setting it to 50 or less per cron run helps? I'm having the same problem.

rpk’s picture

mkrakowiak,

i was able to get this to work in the end but am not sure what exactly fixed it!

since i was running simplenews 6.x-1.1, i decided to see if updating would solve the issue. during the update i also ran update.php.

while i also changed a couple of other settings on the site, which makes it more difficult to say what really fixed the multiple emails issue in my case, i believe that most likely the database tables assigned to simplenews might have gotten corrupted somehow and that running update.php in the course of the simplenews update might have fixed the database and thus got rid of the multiple emails issue.

sorry, i can't be of more help, but i would try updating simplenews if you are not already running the latest version and definitely running update.php in case the database got messed up.

good luck!

mkrakowiak’s picture

I think one of them (running update.php or updating the module or setting to 50 newsletters per cron run) worked in my case - everything's back to normal. I will experiment with setting to more than 50 though. Thanks rpk.

miro_dietiker’s picture

Status: Active » Postponed (maintainer needs more info)

Note that we've developed a module to do debugging of sending processes without bothering any clients:
http://drupal.org/project/maillog

Disable real sending in the module settings and enable logging.
You can now play as much as you like to reproduce any issues... including cron.

Enjoy debugging!

miro_dietiker’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Note this second issue.
#361071: Use locking to eliminate duplicate emails from concurrent simplenews cron runs.

To me it seems this issue already covered the cron issue.
For the other issues regarding sending: I've found an issue (already fixed) that might have happened here.
If you already hit "send" but reedited the newsletter - e.g. while sending or after sending - the recipients where duplicated. On each edit.

The situation is better now but could still be improved.

Closing this issue. Once you can provide a solution where we can reproduce it we'll fix it.