Here is the code I am using on my site....
<?php
set_time_limit();
$filename = "address.txt"; // File which holds all data
$arrFp = file( $filename ); // Make array of file content lines
$numAdds = count( $arrFp ); // Count no. of elements in the array, count email addresses
$sender = "$_POST[sendername]";
$message = "$_POST[block]";
for($i=0; $i<$numAdds; $i++)
{
$emailAddress = trim( $arrFp[$i] ); // Trim email addresses before sending mails
echo "Sending email to $emailAddress...";
$success =
mail( $emailAddress, $subject,
$message, "From: ".$sender." <".$senderemail.">");
if($success) echo "Success<br>";
else echo "Error<br>";
}
?>
It reads the email addresses from a text filr.
For some reason it has "Error" written next to all emails after 120. It wont send more than that. Is there something in this that I can change? It's not for spamming, its for the people that signed up on my bands email list. There are over 200 of them (I think) but I know there's plenty more than 120 that arent getting the emails.
Thanks a million, it's much appreciated for the help.
Peredy