Re: How to implement mass emailing?

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

 



Hi, 

you can create a mailscript to run seperartly in the background, so
when a administrator wishes to send a mass mail, it writes the content
to a database and then executes a stand alone mailing script eg:
exec(' php  phpmailscript.php > logflile.txt &'); use the & to run the
script in the background.

This script can then pull info from a db (user and content) and mail
individually and log that the user was sent a email. This will also
save you the hassel of worring about administrators closing the
browser and having to resend the mail again and if there are thousands
of emails you can then schedual email's to be sent at specific times,
in the evening for example.

 HTH 
Jarratt


 


On Wed, 6 Oct 2004 22:58:59 -0700 (PDT), zareef ahmed <zasaifi@xxxxxxxxx> wrote:
> 
> --- "Tumurbaatar S." <tumurbaatar@xxxxxxxxxx> wrote:
> 
> > The scenario is:
> >
> > 1. Site administrator logs into his admin page and
> > writes
> > some message on a form.
> > 2. After clicking submit the web script should
> > broadcast
> > this message to several hundred subscribers.
> 
> If you want to send the message as email mail() is the
> only option.
> >
> > And I'm wonder how to implement this on PHP.
> > Sending an email to each subscribers can take
> > a much time and PHP will stop after
> > max_execution_time.
> you can set max time by  set_time_limit(), for disable
> time limit just use set_time_limit(0).
> 
> BTW  register_shutdown_function() can be helpfull in
> handling performance related doubts.
> 
> zareef ahmed
> 
> > Any ideas?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> =====
> Zareef Ahmed :: A PHP Developer in Delhi ( India ).
> Homepage :: http://www.zasaifi.com/zareef_ahmed.php
> 
> 
> _______________________________
> Do you Yahoo!?
> Declare Yourself - Register online to vote today!
> http://vote.yahoo.com
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.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