Mass Mails and Not Crashing Server

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-05-2007
Tim McGurk
 
Posts: n/a
Default Mass Mails and Not Crashing Server

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...


Reply With Quote
  #2 (permalink)  
Old 03-05-2007
Rik
 
Posts: n/a
Default Re: Mass Mails and Not Crashing Server

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
Reply With Quote
  #3 (permalink)  
Old 03-05-2007
shimmyshack
 
Posts: n/a
Default Re: Mass Mails and Not Crashing Server

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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0