I have the following email script below. I'm trying to set it up so that as each person in the database is emailed using the while command it will echo out using the $msg; field until all email addresses have been mailed in the database. Right now, it doesnt echo out or show any of the email addresses from the database being emailed until the whole script is completed then boom there is the list saying all have been email OK. WHAT AM I MISSING?? 🙁 please for the love of GOD.
if ((isset($HTTP_POST_VARS['Submit'])) && ($email =='')){
$msg ="Retrieving Email List!<br>";
$msg.="<u>SENDING EMAILS...</u><br><br>";
while ($row_1 = mysql_fetch_array($FanClub)){
$message = stripslashes($_POST['body']);
$getemail = $row_1['Email Address'];
$msg.="$getemail ---> OK sent!<br>";
mail($row_1['Email Address'],stripslashes($_POST['title']),"$message \r\n
-------------------------------------
To unsubscribe from our newsletter: http://www.me.com/unsubscribe.php?email=$getemail", "From: ME <me@you.com>");
}