Hello there,
I used to be able to send between 1000 and 2000 emails at one cron run.
Now I can barely send 200. With a mailing list of over 20,000, this will take forever.
Anyone else is experiencing this? Any advice would be more than welcome :):)
Many many thanks!
JJ

Comments

Delta Bridges’s picture

I just check my logs and I confirm: 200 emails sent in 191.4 seconds. My php.ini time limit is set to 300 seconds....
Any ideas? I guess I can extend the php.ini limit, but to what level, I do not know.
Any help would be greatlyu appreciated :)

sutharsan’s picture

200 emails in 200 seconds is a very long time. It should send within a few seconds. You need to debug the code to find out what takes so long.

Delta Bridges’s picture

Ok, I will try... but I am not so good with code. I was mainly wondering if other people using this module have got a similar problem, or if it was just me :):)
Thanks for the reply though,
JJ

jdwfly’s picture

I am running into a similar problem, but I can only send 100 emails in 3.5 seconds. It errors out saying that my Max execution time was nearly reached but that is set at 90 seconds.

jdwfly’s picture

I narrowed it down to this line 1727

if ($elapsed > SIMPLENEWS_SEND_TIME_LIMIT * ini_get('max_execution_time')) {

I know that SIMPLENEWS_SEND_TIME_LIMIT is 0.8 and ini_get('max_execution_time') is 120. I am not too sure of $elapsed yet, but somehow it is getting larger than 96. I replaced the line with this...

if ($elapsed > 96) {

This seems to work just fine, but obviously is not ideal. Maybe there is a problem with the function _simplenews_measure_usec() that gives $elapsed its value?

sutharsan’s picture

Status: Active » Closed (fixed)