i have a mailing list script that i have working but i want the subject contents to be html but am having troule doing it.
this is my script so far
<?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 = "mailing test";
mail("$line", "$subject", "$message",
"From: [email]MailList@electrosave.couk[/email]\r\n"
."Reply-To: [email]DONTEMAILBACK@electrosave.couk[/email]\r\n"
."X-Mailer: PHP/" . phpversion());
}
echo "ALL EMAILS HAVE BEEN SENT";
} else {
echo "Sorry you entered the incorrect password";
}
?>
any help will be great.