Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest convention

Send mail at a specified time?

Recommended Posts

Guest convention
In PHP, is it possible to send mail (or, execute the mail() function) at a specified time? Thanks. :)

Share this post


Link to post
Share on other sites
[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

Share this post


Link to post
Share on other sites
Guest convention
[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.

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.