With this mailing list script it seems to only email the first 6 email address. Does anyone know whats up with it?
<?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";
}
?>