Need a PHP script

Discussion in 'PHP' started by Lord Fire, Dec 28, 2007.

  1. #1
    Need a pHP script to mass mail 130k email ids
    with cron job of sending 10 emails per minute
    email ids are in testfile line by line
    emails can be sent via my webserver or smpt server of google gmail.:)

    Can anyone help.
     
    Lord Fire, Dec 28, 2007 IP
  2. mvl

    mvl Peon

    Messages:
    147
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I guess you can find some free scripts if you search the web, but if you want it done properly I recommend hiring a good freelancer to get the job done. What is your budget to get this done?

    BTW: do you realise that sending 130K emails at a rate of 10 per minute takes more than 9 days to send them all ?
     
    mvl, Dec 29, 2007 IP
  3. Lord Fire

    Lord Fire Banned

    Messages:
    299
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can you suggest me some scripts (links) i can modify them in my way.

    i dont want to make my emails look spam so i will let them have an opt out method
     
    Lord Fire, Dec 29, 2007 IP
  4. Dagon

    Dagon Active Member

    Messages:
    122
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Check phpmailer (http://sourceforge.net/projects/phpmailer) for great mailing functions.

    Put your 130k emails in a mysqltable with an id and an extra field 'sent'.

    Create a script that gets 10 emails from db:

    $query = "select * from table where sent=0 limit 10";
    $res = mysql_query($query);
    while($row = mysql_fetch_array($res)
    {
      ... use mailer function to send mails
    
      mysql_query("update table set sent=1 where id=$row[id]");
    }
    PHP:
    easy as that :)
     
    Dagon, Dec 29, 2007 IP
  5. DarkMindZ

    DarkMindZ Guest

    Messages:
    175
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    or,

    $file = file('filenamehere');
    while($line = $file)
    {
    ... use mailer function to send mails, $line is the $TO variable :)
    }

    but i dont think that would handle the 130K, so you might wana split that..
     
    DarkMindZ, Dec 29, 2007 IP
  6. SM21

    SM21 Banned

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thank you i am trying to do something like this as well
     
    SM21, Dec 29, 2007 IP