Andy Hassall wrote:
On Tue, 05 Apr 2005 20:10:49 +0200, Micha³ Wo¼niak
<mikiwoz_remove_this@yahoo_remove_this.co.uk> wrote:
bi*******@gmail.com napisa³:
I would like to create a "send out scheduled e-mails" function in my
PHP application.
I guess it would be hard to program this function using PHP.
What ways can I implement this?
Are you using Linux? If so, you could simply use a cronjob to send
them. :)
Or, if you really HAVE to use php, you could use a cronjob to access a
page with the e-mail sending script with wget:
wget -o /dev/null -O /dev/null yourscript.php
PHP has a perfectly good command-line executable that'd be preferable to this,
if available.
And, if you're running Windows, there are 2 cron-like setups: the
Windows Task Scheduler and the "AT" command. Just run "at -?" from a
command prompt to see the options. The advantage AT has over other
Windows methods of doing this is that, as a commandline program itself,
your script can easly alter or add scheduling options for itself.
J Wynia
Sokkit Web Server Toolkit
www.sokkit.net