Activity Stream
48,167 MEMBERS
6945 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member
    Website's:
    innovative-coding.com wolfs-rain.org wolfsrain.org infothread.org

    Default phpmailer

    I need a small/quick/working php script that sends an email from emails.txt (same dir as script) only need to send about 100-200 emails once

    anyone have one?
    __Doc_ Reviewed by __Doc_ on . phpmailer I need a small/quick/working php script that sends an email from emails.txt (same dir as script) only need to send about 100-200 emails once anyone have one? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    innovative-coding.com wolfs-rain.org wolfsrain.org infothread.org
    bumpssssssssssssssssssssss

  4.     
    #3
    Doing things differently.
    Give it time ffs, most are probably asleep.
    $project->uploading($surprise);
    //Fatal error: found object, can't execute, no earn = must kill self..

  5.     
    #4
    Member
    Website's:
    innovative-coding.com wolfs-rain.org wolfsrain.org infothread.org
    asleep at 7pm ? my time is limited and 2 hour bump isnt excessive

  6.     
    #5
    Respected Developer
    use PHP Mailer, here is a small script i just wrote for you:

    PHP Code: 
    // include phpmailer library, download from here http://phpmailer.worxware.com/
    require("phpmailer.inc.php");

    // then you need to read file, i assume there are emails in one line and you dont have names.
    $emails file('emails.txt'FILE_IGNORE_NEW_LINES FILE_SKIP_EMPTY_LINES);

    // Start building email
    $mail = new phpmailer;
    $mail->IsMail(); 

    $mail->From "youremail.com";
    $mail->FromName "Your name";
    $mail->IsHTML(true);
    $mail->Subject "Your Subject";
    $mail->Body "Your message here";

    // start a loop
    foreach ($emails as $email) {

      if(!empty(
    $email){
      
    // send email one by one
      
    $mail->AddAddress($email);
       
    $mail->Send();
       
    $mail->ClearAddresses();
      
    // lets sleep for 2 seconds before sending next email
      
    sleep(2);
     }

    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

BE SOCIAL