PHP programmer wanted

Discussion in 'PHP' started by TromS, Sep 16, 2007.

  1. #1
    Hey, I need a programmer to code me a simple script that sends out a mail to ~1500 users. The emails are all saved in a database, so the script would have to get the emails from there. The coder would have to decide what amount of mails the script will send each minute, considering spam..

    Send me a quote for this job in a PM.
     
    TromS, Sep 16, 2007 IP
  2. fitforfreedom

    fitforfreedom Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this:

    <?php
    $sql=mysql_connect("server","user","password");
    $db=mysql_select_db("database",$sql);

    $adds=mysql_query("SELECT emails FROM table");
    while($emails=mysql_fetch_array($add)) {
    mail($emails['email'],"Subject","Message");
    sleep(5); // send a mail every 5 seconds
    }
    mysql_close($sql);
    ?>
     
    fitforfreedom, Sep 16, 2007 IP
  3. ErectADirectory

    ErectADirectory Guest

    Messages:
    656
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Or try this ... You'll be much happier.
     
    ErectADirectory, Sep 16, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    IF you want to use this, don't forget to set the time limit to 0.

    
    set_time_limit(0);
    
    PHP:
    0 = unlimited.


    But yes, I agree with EAD, use phplist instead.
     
    nico_swd, Sep 17, 2007 IP
  5. Parasite

    Parasite Active Member

    Messages:
    192
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    I can make a email script with an admin panel and everything...Check PM :)
     
    Parasite, Sep 17, 2007 IP
  6. fitforfreedom

    fitforfreedom Peon

    Messages:
    70
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    nico is right, sorry. don´t forget to set the time_limit to 0, if using my little script.
     
    fitforfreedom, Sep 17, 2007 IP