Newsletter and cron job

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
sebby
Posts: 28
Joined: Thu 28. Apr 2005, 00:31

Newsletter and cron job

Post by sebby »

Hello all-

I have clients using phpWCMS (1.2.8 & 1.3.3.) with 1000+ subscribers for their Newsletters and I noticed that the script is sending all messages at once, causing a tremendous (I mean outrageously high!) load on the server. I use my own dedicated servers so I can manage the load but I suspect that those hosted in a shared environment will soon be barred.

Has anyone thought of using a cron-driven mailer that would handle smaller batches in a timely manner (e.g. 100 messages every 5 minutes)?

Any thoughts on this subject would be most appreciated.

Kind Regards,
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

in 1.3.3 you can set a amount of Newsletters are send in one time with a Delay for the next amonut :!:

'nn'-recipent/loop - loop-pause: 'nn' seconds
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
sebby
Posts: 28
Joined: Thu 28. Apr 2005, 00:31

Post by sebby »

Thanks for the suggestion pico. I am glad to see that this feature was enabled in 1.3.3. However, I can't seem to find where to put this config (i.e. where do you setup the loop/loop-pause vars)?

Thanks again for your most valuable assistance.

[EDITED]

OK. I saw the feature in the BE before launching the mass mail. However, the pause is to short (9sec max) and I think this feature should be reserved to web developers (i.e. hardcoded in conf.inc.php) and not available to regular BE users (including admin) as this is a matter of hardware resources...

Regards,
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

think that the Delay of max.9sec. are enought - also hold in mind, that this Time is working inerhit a PHP-Script and on most Hosters there is a max. Runtime for PHP-Scripts - access to Cronjobs are mostly not allowed.

For me this works at every Hoster I use - and the maximum of Subscribers is at one Site over 25.000 - also without any Problems nad this is a shared Server ;)

Edit uups - lik in School - have problems with the Zero's - Corrcet Value is 2.500
Last edited by pico on Sat 23. Jun 2007, 23:31, edited 1 time in total.
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

pico wrote: and the maximum of Subscribers is at one Site over 25.000 - also without any Problems nad this is a shared Server ;)
:lol: Spammer :wink: In first try I used some of the indexed words and forum threw me out :D
Post Reply