Schedulling for next time PHP

I want to implement a mailing list… I want to have an option something like this ::::: I write a letter and save it and schedule it for later. Later period when the scheduled time arrived, it will automatically send the letter.

How can I do this? Is it cron job or something…


Step 1:Just create a cron job through hosting panel like CPanel.
That cron job should run your php file…

Just put your task in DB with schedule time, and create a cron job (to run every 5 min)to run a program and that program should run the Scheduled task if the schedule time occurred and then delete the entry from DB.

May some more solution for this…

I don’t know how to write a cron job in PHP. How can I do this? Can U provide me any info…?