View Single Post
Old 10-15-2009, 01:26 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
put all your emails in a file called emails.txt each on a new line
put your email message in a file called message.txt

save this code as email.php and run in browser it will email each email in list the message in message.txt ( html can be used )

Code:
<?php


$from = "[email protected]";
$subject = "my email subject";
$list = file_get_contents("emails.txt");
$message = file_get_contents("message.txt");



$headers = "From: $from\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "Return-Path: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";


$dc = explode("\n",$list);


foreach( $dc as $key => $to){
if(mail($to, $subject, $message,$headers)) {
echo "$to has been mailed<br>";
} else {
echo "error sending to $to <br>";
}
}

?>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote