Hi,
I have a client who will need to send out bulk eMail within the next few months. I will build a plugin for my CMS that will allow this, but sending a bulk eMail by simply looping through all the mail addresses could easily become a problem!
I don't want to cause any trouble for WHB's servers, so I plan instead to have the bulk mailer write the mails to be sent into a database. This database will be used as a queue, and a chron job, executed frequently, will check to see if any mail is queued. If so, it will batch a few of them, and rest for a minute or two and then check again.
I figure in this way, if there is no mail in the queue, the script will execute and exit in a small fraction of a second, so even running every minute or two should cause no trouble for the server. It also means that if there IS mail in the queue, the script will only send a certain amount, so as to not overload WHB's mail services.
My initial thought is to run the chron every two minutes, and send a maximum of 30 eMails, but I realize this may be too much. I would like to still be able to send at least on average 5 eMails per minute. (300 an hour).
Please note, by the way, that most likely we're talking about 50 eMails or so, not 500. I just want them sent in a reasonable matter of time. It's a mailing list for people that are specifically registered for a service, and the mails will provide them updates that they require for their job! This is not, by any means, a situation of spamming!
Any comments from fellow WHB clients or the WHB staff?




Reply With Quote
