How Can i do this..., automatic email...!

Discussion in 'PHP' started by strgraphics, Jun 24, 2010.

  1. #1
    i have 756+ clients in my database...,

    i want to send wises.., to all the cliets in my database.,

    Let today is 2nd i want to send the mail on 15th and 27th of that month.., i may or may not remember.

    so is there any way to fix that program.., so that it must run on 15th and 27th morning in particular time..,

    hope you understand.....!
     
    strgraphics, Jun 24, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    If they have given you permission to email them, you just need to write a script to send the email and then add it as a cronjob to run on the 15th and 27th of every month.

    you should look into storing the emails in a database; this way you can use the same script over and over, and you just need to add the email into the database. The cronjob will then send it on the time and date you specify.

    You can find out more about cron here, although if you have cpanel on your server it is even simpler to do it through the frontend;

    http://adminschoice.com/crontab-quick-reference
     
    lukeg32, Jun 24, 2010 IP
  3. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Ohh ya..., i visited and i understood some thing.., thanks friend..!
     
    strgraphics, Jun 24, 2010 IP