This is a discussion on Mass Mails and Not Crashing Server within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have to write a script that will send about 300 emails with an automatically generated report and text, and ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have to write a script that will send about 300 emails with an
automatically generated report and text, and I am concerned about crashing the server with that many successive calls to mail()... Is that a reasonable concern, or am I being foolish? And, if is a reasonable concern, my assumed solution would be to call sleep() for, say, 15 seconds between each mail send... Am I on the right track, or is there a better way? Thanks for any help... |
|
|||
|
Tim McGurk <nicetim33@yahoo.com> wrote:
> I have to write a script that will send about 300 emails with an > automatically generated report and text, and I am concerned about > crashing > the server with that many successive calls to mail()... Is that a > reasonable > concern, or am I being foolish? Any normal server should be able to handle this. 300 isn't exactly 'mass' mail compared to the real thing. If you have to sent thousands of emails at once, then it's usually better to let a third party specialist handle this. -- Rik Wasmus |
|
|||
|
On 5 Mar, 09:25, Rik <luiheidsgoe...@hotmail.com> wrote:
> Tim McGurk <niceti...@yahoo.com> wrote: > > I have to write a script that will send about 300 emails with an > > automatically generated report and text, and I am concerned about > > crashing > > the server with that many successive calls to mail()... Is that a > > reasonable > > concern, or am I being foolish? > > Any normal server should be able to handle this. 300 isn't exactly 'mass' > mail compared to the real thing. If you have to sent thousands of emails > at once, then it's usually better to let a third party specialist handle > this. > -- > Rik Wasmus also you should think about using authenticated smtp, that way your function can make use of a keepalive to send the whole lot at once, and in this case sleep() would actually result in MORE load to the server. Crashing the server is just not a remote possibility, having your mail /dev/null'ed by your Hosting provider might be, so check their t&c, some do not allow more than 10 mails a minute max 150 per hour..... some really can be that tight. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|