CRONTAB

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jothirajan
Forum Commoner
Posts: 69
Joined: Tue Jan 27, 2009 12:06 am

CRONTAB

Post by jothirajan »

Hi all

I want to send an email automatically using CRONTAB...any help how can i get this done.

Any help ?...
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: CRONTAB

Post by requinix »

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.
jothirajan
Forum Commoner
Posts: 69
Joined: Tue Jan 27, 2009 12:06 am

Re: CRONTAB

Post by jothirajan »

Thanks for getting me a point.. i got the output...

Thanks forum
Post Reply