Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?
So sprach »Fotwun« am 2001-09-06 um 16:16:25 -0700 : Hi, I need to send a broadcast email to our customers (about 3,000 emails). The Well, forget it. Many major providers like Yahoo, AOL, Hotmail etc.pp. have *VERY* SPAM strict filters in place. Especially if you use Bcc:'s, chances are high that a lot of your will bounce. If you'll be doing something like this more often, it'll be a lot easier and a lot more successful if you outsource this to specialized companies. They know how to circumvent this kind of trouble. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 1 day 20 hours 20 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?
Well, forget it. Many major providers like Yahoo, AOL, Hotmail etc.pp. have *VERY* SPAM strict filters in place. Especially if you use Bcc:'s, chances are high that a lot of your will bounce. If you'll be doing something like this more often, it'll be a lot easier and a lot more successful if you outsource this to specialized companies. They know how to circumvent this kind of trouble. Or install your own listserver software.. I'm not sure how good they are in terms of using a MySQL database as source, but you could create any file using PHP.. Might be worthwile to check this.. also.. these packages would normally handle bounces. You could do the same but it would cost you to much time. Bye, B. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?
Also remember PHP has a maximum execution time (normally 30 seconds) so you will need to overwrite when running the script. - Original Message - From: Kath [EMAIL PROTECTED] To: Fotwun [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 07, 2001 12:39 AM Subject: Re: [PHP] Sending Broadcast Email - will a large loop cause a crash? Whats your time frame for deployment of the email? You might want to stagnate it out... like loop through 100, pause for 10 secs, do the next 100, pause, repeat. Maybe longer if you could. You could always have it record the number, stop it and adjust higher/lower as required. Also, make sure that you are able to tell what emails are kicked back and logged as not being received (User not found, other kind of error in sending). Please let us know what happens, it would be excellent reference. - k - Original Message - From: Fotwun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 06, 2001 7:16 PM Subject: [PHP] Sending Broadcast Email - will a large loop cause a crash? Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. My concern is this... will such a loop calling mail() cause PHP/Apache/the box/etc to crash under normal circumstances? We have a pretty beefy box, I just have never tried broadcasting through PHP. Also, if there is any reasonable chance for such a failure, is it possible to put timed pauses in, say half a second or so before it continues the loop. I've never heard of inserting pauses into the execution of PHP code, not sure if its possible. If it were, I would think this could combat some of the load, and prevent the bottleneck from building backlog until failure. Who knows, maybe this type of routine won't even make my box flinch (P3-833, FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a crash, mainly because I'll have no idea where it left off, and will end up sending 2 or more emails to some people if I have to run it more than once. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sending Broadcast Email - will a large loop cause a crash?
Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. My concern is this... will such a loop calling mail() cause PHP/Apache/the box/etc to crash under normal circumstances? We have a pretty beefy box, I just have never tried broadcasting through PHP. Also, if there is any reasonable chance for such a failure, is it possible to put timed pauses in, say half a second or so before it continues the loop. I've never heard of inserting pauses into the execution of PHP code, not sure if its possible. If it were, I would think this could combat some of the load, and prevent the bottleneck from building backlog until failure. Who knows, maybe this type of routine won't even make my box flinch (P3-833, FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a crash, mainly because I'll have no idea where it left off, and will end up sending 2 or more emails to some people if I have to run it more than once. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?
Well, try it - find a willing victim and just do a simple loop. Alternately, set up an account with a local, high-bandwidth ISP, batch in groups of 330-, and use BCC. Miles At 04:16 PM 9/6/01 -0700, Fotwun wrote: Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. My concern is this... will such a loop calling mail() cause PHP/Apache/the box/etc to crash under normal circumstances? We have a pretty beefy box, I just have never tried broadcasting through PHP. Also, if there is any reasonable chance for such a failure, is it possible to put timed pauses in, say half a second or so before it continues the loop. I've never heard of inserting pauses into the execution of PHP code, not sure if its possible. If it were, I would think this could combat some of the load, and prevent the bottleneck from building backlog until failure. Who knows, maybe this type of routine won't even make my box flinch (P3-833, FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a crash, mainly because I'll have no idea where it left off, and will end up sending 2 or more emails to some people if I have to run it more than once. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sending Broadcast Email - will a large loop cause a crash?
Hi, You'd be better off running this process from a command line, i.e. not through your Web Browser as I'm more than certain that it will timeout if you are to send 3000+ emails in a loop :). And then you'll have to start again , and I'm sure your client won't be so happy if they were to get multiple copies of the same emails even if they've asked for it:) You can still write the program in PHP to run from the command line. There are only a couple of changes that you have to make (if you have complied PHP to be both stand alone and Web plugin) to enable this. Also if you were to do this, I wouldn't use mail() function. What I'd do is run sendmail from the command line (with switches) to basically, get sendmail to handle *all* deliveries. The beauty of this is that with certain switch you use from the command line you run sendmail in *batch* mode i.e. it won't try to send the email straight away but put them into the queue. The advantage of this is that you can crunch through the list much quicker. And even if your server crash the emails would already be in the queue so you won't have to redo it :). Just a few pointers :) HTH. Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. My concern is this... will such a loop calling mail() cause PHP/Apache/the box/etc to crash under normal circumstances? We have a pretty beefy box, I just have never tried broadcasting through PHP. Also, if there is any reasonable chance for such a failure, is it possible to put timed pauses in, say half a second or so before it continues the loop. I've never heard of inserting pauses into the execution of PHP code, not sure if its possible. If it were, I would think this could combat some of the load, and prevent the bottleneck from building backlog until failure. Who knows, maybe this type of routine won't even make my box flinch (P3-833, FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a crash, mainly because I'll have no idea where it left off, and will end up sending 2 or more emails to some people if I have to run it more than once. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?
From: Miles Thompson [EMAIL PROTECTED] Well, try it - find a willing victim and just do a simple loop. Alternately, set up an account with a local, high-bandwidth ISP, batch in groups of 330-, and use BCC. Miles At 04:16 PM 9/6/01 -0700, Fotwun wrote: Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Or load and install qmail. Set the number of outgoing queues to a reasoable number (maybe 50 or so) and let loose. You'll never have more than queue connections simultaneously. Keeps the load reasonable. Mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?
Whats your time frame for deployment of the email? You might want to stagnate it out... like loop through 100, pause for 10 secs, do the next 100, pause, repeat. Maybe longer if you could. You could always have it record the number, stop it and adjust higher/lower as required. Also, make sure that you are able to tell what emails are kicked back and logged as not being received (User not found, other kind of error in sending). Please let us know what happens, it would be excellent reference. - k - Original Message - From: Fotwun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 06, 2001 7:16 PM Subject: [PHP] Sending Broadcast Email - will a large loop cause a crash? Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. My concern is this... will such a loop calling mail() cause PHP/Apache/the box/etc to crash under normal circumstances? We have a pretty beefy box, I just have never tried broadcasting through PHP. Also, if there is any reasonable chance for such a failure, is it possible to put timed pauses in, say half a second or so before it continues the loop. I've never heard of inserting pauses into the execution of PHP code, not sure if its possible. If it were, I would think this could combat some of the load, and prevent the bottleneck from building backlog until failure. Who knows, maybe this type of routine won't even make my box flinch (P3-833, FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a crash, mainly because I'll have no idea where it left off, and will end up sending 2 or more emails to some people if I have to run it more than once. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] More info on BCC? (was Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?)
What's the reasoning behind that number? (330-) I'm about to implement something similar, using BCC (since the emails don't need to be personalized). I've searched in the past for the answers to 2 questions, but haven't had any luck. Can you shed any light on the issue? 1. Is there a limit on the number of BCC recipients that can be included? (Is this where you got the 330 number?) If so, what is it, and if not, what is a reasonable number to include in a single email (1000, 1, 10, etc) 2. Is it possible, using BCC from a mail() function in PHP, to accidentally reveal the list of recipients to anyone who receives the email? Thanks, Andrew Elliston On Thursday, September 6, 2001, at 04:35 PM, Miles Thompson wrote: Well, try it - find a willing victim and just do a simple loop. Alternately, set up an account with a local, high-bandwidth ISP, batch in groups of 330-, and use BCC. Miles At 04:16 PM 9/6/01 -0700, Fotwun wrote: Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ times. Because of the overhead I anticipate this will cause the server, I am planning to do it late in the evening. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]