Results 1 to 5 of 5
Threaded View
-
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.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaCreator - create posts from...
Version 3.56 released. Open older version (or...