Re: send email at certain hour
| From: | Arthur Wiebe | Date: | Sat, 25 Jun 2005 18:55:53 +0000 |
| Subject: | Re: send email at certain hour | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217624@lists.php.net to get a copy of this message | ||
vlad georgescu wrote:
i want to make a "reminder" application which sends emails at certain hour in php. is this posibile ? if not, what else can I use ?I've done it using pure PHP for a calendar script. What I did was write a PHP script with a loop that checks every second whether or not something should be done. For example: <?php $t = true; while ($t) { if (time() == $myTimeStamp) {
mail(args);} } ?> at the top of the script I have a line like this: #!/usr/bin/env php for *nixs' and I wrote a little batch file for Windows systems. At least it works.