Jump to content


Photo

Script to send emails every night using some kind of cron job?


  • Please log in to reply
1 reply to this topic

#1 playaz

playaz
  • Members
  • PipPipPip
  • Advanced Member
  • 55 posts

Posted 02 August 2006 - 10:05 AM

Hi Guys,

I have to develop a script that will send an email to particular customers in a database once a certain date has been passed, for instance to send an email every 2wks. I know this would need a script involving a cron job but i am new to this can someone put me in the right direction.

Thanks

#2 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 02 August 2006 - 11:20 AM

Well, you could make a page called sendemail.php then on that page have your email headers, what you want it to send etc, then run the sendemail.php with a cron job that has the settings you want (when you want it ran etc).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users