Hi
I am very new to PHP so please forgive me for sounding noob
but what I want to do is provide a web-form for users to input to/from/message so that he can send an email using the form. that part is very easy with mail() but i am trying to add another function where the user can input a delay. So let's say he puts in his email contents and puts in a delay of 20 minutes. I want my server to send that email out after 20 minutes.
I have tried searching and I see people suggest cron jobs, which i cannot do cuz my hosting server is limited. I also saw sleep(). But wouldnt sleep() result in my code to continue executing until the delay time is met? because ideally after the user puts in 20 minutes and submit, the website should inform him "mail will be sent in 20minutes" and then return to original page with the form blank again, so if he wants he can submit another job.
is there anyway to do this strictly in php, no database(dont have one)??
Thanks