adoute Posted December 11, 2003 Posted December 11, 2003 I have used PHP's mail() function in a few scripts before, for sending simple mail to one or two addresses. I have a database of approx. 6000 addresses that I would like to send a personal note to, a few (maybe 4 or 5) times a year. These are personal notes (I know, it's a lot of addresses). I have written a PHP script that will run through my database of addresses, and send an e-mail to each one individually, using the mail() function. I am wondering a couple things: - Will this cause severe server load, thus degrading other users sites? - Is this against the "Terms of Service"? (This is a PEROSNAL list, not for profit or spam) I realize that using a canned "Mail List" software package may be preferable, but figured that writing a quick PHP script would be easier, considering the mailing will only happen a few times a year. I have tested my script with a small list of addresses (works fine), but was hoping to get some "Official TCH" input before I ran it against my big db of addresses. So, TCH staff, what do you think? Thank you for your input - Allan Doute (Hopefully, this forum is the appropriate place for this post. If not, my apologies.) Quote
TCH-Dick Posted December 11, 2003 Posted December 11, 2003 (edited) Will this cause severe server load, thus degrading other users sites? Yes it will, so TCH limits the number of outgoing mail in a certain amount of time, 50 outgoing e-mails every 300 seconds (5 minutes), Edited December 11, 2003 by TCH-Dick Quote
TCH-Dick Posted December 11, 2003 Posted December 11, 2003 The only problem with that is there is a limit on the server that only permits 50 outgoing e-mails every 300 seconds. If you try and send 6000 e-mails all at once, 50 will be delivered and you will get 5550 bounce messages. Quote
taznumber1 Posted December 11, 2003 Posted December 11, 2003 So since TCH limits what you could do is send out the 50 mail messages and then insert the sleep(301) command which will cause the php script to pause for 5 minutes and then continue on and send 50 more mail messages. Quote
adoute Posted December 11, 2003 Author Posted December 11, 2003 Is mailman (the mail list software available in C-panel) configured to only send 500 in 5 minutes? If so, that might be the easiest way for me to go. If I used PHP's sleep() function, wouldn't the browser have to stay open until the script finished processing? If mailman is the right way to do this, then thats what I'll do. Is that the concensus - that a mailing list is the best way to handle this? Thanks - Allan Quote
TCH-Dick Posted December 11, 2003 Posted December 11, 2003 A mailing list is the way to go, but Mailman wont do it without some add ons. The mailing list program I would recommend is this one http://mojo.skazat.com/ Quote
adoute Posted December 11, 2003 Author Posted December 11, 2003 TCH-Mike: OK. I've looked through Dada Mail's documentation, and I'm not quite sure what configuration settings I'll need to make to avoid the 50 mails / 300 second limit. If I install it, would you possibly be able to assist me with configuration? Allan Quote
TCH-Dick Posted December 11, 2003 Posted December 11, 2003 once you get it installed, it has a web based interface for configuring it, but if you need any help I'll be glad to give you a hand. Quote
adoute Posted December 11, 2003 Author Posted December 11, 2003 TCH-Mike - Thanks. I'll let you know if it gives me any trouble. Allan Quote
gorriedt Posted January 4, 2004 Posted January 4, 2004 I would have to agree. Dada mail is great. I'm a convert from multiple other mails scripts! It's very easy to set up and works great! -Dave Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.