Re: Individual bulk e-mails - performance question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2008-08-30 at 22:14 +0200, Per Jessen wrote:
> Merlin wrote:
> 
> > I am thinking about placing the info on the individual e-mail inside a
> > ascii txt file that will be read by a cron job which will send the
> > e-mail instead. Something like every 5 minutes reading it line by line
> > and then after sending it removing the line.
> > e.g:
> > for:bla@xxxxxxx; body:individual
> > for:new@xxxxxxxxxxxxx; body:other email
> > 
> > Does this sound like a plan? Or do you believe that there are better
> > ways doing it? 
> 
> Sounds pretty good to me.
> 
> > I could imagine that I would run into problems a few 
> > months from now if for example the cron job will be triggered a second
> > time, while the first one has not finished.
> 
> That's easily taken care of.  Instead of a cron-job, you could have a
> script running as a daemon, checking for emails to be sent every 5mins.

That's the same as running a cron every 5 minutes except now you also
need to detect if your daemon dies :) On the plus side though, you
eliminate the overhead of starting up the script every 5 minutes :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux