Hi, I am reading emails from my a file. When i send the email, it has no subject or from tags, what am i doing wrong? The code is:-
<?
$count = "0";
$subject = "I have just found this amazing new totally FREE Webcam site!!!";
$msg = "Check it out, hundreds of REAL live people on their home webcams, getting up to all sorts! http://www.amateurmanor.com";
$email_list = file ('email.txt');
foreach ($email_list as $email)
{
mail($email, $subject, $msg);
$count++;
echo "Message sent to $email";
echo "$count <BR>";
}
?>
Thanks
Jules