Hi all
I want to send an email automatically using CRONTAB...any help how can i get this done.
Any help ?...
CRONTAB
Moderator: General Moderators
Re: CRONTAB
I assume you want to use PHP for this?
Scheduling a script is the hardest part, and searching around is the easiest way to solve that.
Then all you have to do is create a PHP script, preferably not anywhere accessible over the web, that sends the emails. You can do anything in it you normally would: database access, include and require files, etc. There are a couple limitations, like how some $_SERVER variables might not be available and how anything you output will be emailed to you as a result of the cron job, but they are few and far between. Keep them in mind and you'll be fine.
Scheduling a script is the hardest part, and searching around is the easiest way to solve that.
Then all you have to do is create a PHP script, preferably not anywhere accessible over the web, that sends the emails. You can do anything in it you normally would: database access, include and require files, etc. There are a couple limitations, like how some $_SERVER variables might not be available and how anything you output will be emailed to you as a result of the cron job, but they are few and far between. Keep them in mind and you'll be fine.
-
jothirajan
- Forum Commoner
- Posts: 69
- Joined: Tue Jan 27, 2009 12:06 am
Re: CRONTAB
Thanks for getting me a point.. i got the output...
Thanks forum
Thanks forum