with this mailing script i have it seems to stop the loop after about 6 or 7 emails. Anyone have any ideas, as to what is wrong?
<?php
if ( $pass == "password" ) {
echo "Thank you, the emails are being sent now<br>";
$fp = fopen( "members.txt", 'r' );
while ( ! feof( $fp ) ) {
$line = fgets( $fp, 1024 );
echo "Sent email to $line<br>";
/* message */
$message = '
**html**
';
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Electrosave MailList <DOnotREPLY@electrosave.com>\r\n";
/* mail it */
mail("$line", "$subject", "$message", $headers);
}
echo "ALL EMAILS HAVE BEEN SENT";
} else {
echo "Sorry you entered the incorrect password";
}
?>