php mail scheduler

Discussion in 'PHP' started by hackfanatic, Jan 1, 2009.

  1. #1
    Hey guys,

    I got tired of hosts email / time restrictions, just finished writing most of a mail scheduler script, only thing is that my host executes crons at half n hr intervals minimum... hmm... Dispatching emails every half hour wouldn’t be fun and on top of that there’s per minute restriction as well...: o

    My script uses an endless loop delayed by the sleep function.

    Only thing is, this script when I run on my xampp, uses like 90% of one of my cpus, don't think my shared host would be happy with that...: o...

    Any tips?
     
    hackfanatic, Jan 1, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Try using instead of sleep a javascript meta tag redirection and start where you where ended..

    I'm using this technique in one of my bulk email sending applications
     
    EricBruggema, Jan 2, 2009 IP
  3. hackfanatic

    hackfanatic Peon

    Messages:
    29
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah..! thats a good idea! thanks.. :)
     
    hackfanatic, Jan 2, 2009 IP