Guest convention Posted October 20, 2006 Share Posted October 20, 2006 In PHP, is it possible to send mail (or, execute the mail() function) at a specified time? Thanks. :) Quote Link to comment Share on other sites More sharing options...
Orio Posted October 20, 2006 Share Posted October 20, 2006 You'll need to run a cron job for that.Orio. Quote Link to comment Share on other sites More sharing options...
obsidian Posted October 20, 2006 Share Posted October 20, 2006 [quote author=Orio link=topic=112156.msg455108#msg455108 date=1161368643]You'll need to run a cron job for that.Orio.[/quote]or, if you're running on linux, and you only need it to run once, just set up an "at" command Quote Link to comment Share on other sites More sharing options...
Guest convention Posted October 20, 2006 Share Posted October 20, 2006 [quote author=Orio link=topic=112156.msg455108#msg455108 date=1161368643]You'll need to run a cron job for that.Orio.[/quote]I did some research on cron jobs, and it seems you can only do that from the terminal. Is there any way to do this with just PHP? Thank you for the help. Quote Link to comment Share on other sites More sharing options...
obsidian Posted October 21, 2006 Share Posted October 21, 2006 [quote author=convention link=topic=112156.msg455191#msg455191 date=1161379382]I did some research on cron jobs, and it seems you can only do that from the terminal. Is there any way to do this with just PHP? Thank you for the help.[/quote]nope. PHP is a script that is run by the server. CRON is simply a scheduled task that tells the server [b]when[/b] to run your PHP script. you can't have your PHP running at specified times without setting up some way for your server to know when to run it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.