Un basic mass email sender facut de mine anul trecut
<?php
$file=fopen("maillist.txt","r");
$header="From:" . $_POST["from"];
while(!feof($file))
{
$to=fgets($file);
if ( mail($to,$_POST["subject"],$_POST["message"],$header) ) echo " Mail succesfuly sent to " . $to ;
else echo "The script could not email " . $to . " !! ";
}
fclose($file);
?>