Results 1 to 5 of 5
-
7th Sep 2011, 11:36 PM #1OPMemberWebsite's:
innovative-coding.com wolfs-rain.org wolfsrain.org infothread.orgphpmailer
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
-
8th Sep 2011, 01:31 AM #2OPMemberWebsite's:
innovative-coding.com wolfs-rain.org wolfsrain.org infothread.org
-
8th Sep 2011, 01:38 AM #3Doing 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..
-
8th Sep 2011, 02:33 AM #4OPMemberWebsite's:
innovative-coding.com wolfs-rain.org wolfsrain.org infothread.org
-
8th Sep 2011, 04:06 PM #5Respected 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.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaManager - edit and manage...
Version 4.04 released. Open older version (or...