I am getting some wierd output from my script in my email accounts and I was wondering if anyone would know what's up or have pointers. Code is below (of course this is only part of the page):

// Send query to get all subscribers
$sql = "SELECT * FROM subscriber";

$result = @mysql_query($sql) or die("Couldn't execute query.");
$num = 0;

// Set up headers for the email
$mailheaders = "From: $list\n";
$mailheaders .= "MIME-Version: 1.0\n"
$mailheaders .= "Content-type: text/html; charset=iso-8859-1";

// Begin loop to send message to all subscribers
while ($row = mysql_fetch_array($result))
{
$email = $row['email'];
$uid = $row['uid'];

// Setup up body and signature
$newsletter = "<p>" . $newsletter . "<p><hr width=\"100%\" size=\"1px\" noshade>If you would no longer like to receive the BOYAC e-Letter click <a href=\"http://www.boyac.com/newsletter.php?email=$email&uid=$uid&aid=2\" alt=\"Click to nsubscribe\"><b>here</b></a>";

// Send the email
mail($email, $subject, stripslashes($newsletter), $mailheaders);

// Increment the counter for total number of emails sent
$num++;
}
// Print total number of emails sent
echo "Newsletter sent to " . $num . " subscriber(s).";


I am getting the following output in some of the emails (AOL, Yahoo, etc - hotmail is fine):

Essentially the signature is being printed multiple times in the emails and the links are pointing to multiple subscriber?


--------------------------------------------------------------------------
If you would no longer like to receive the BOYAC e-Letter click here


--------------------------------------------------------------------------
If you would no longer like to receive the BOYAC e-Letter click here


--------------------------------------------------------------------------
If you would no longer like to receive the BOYAC e-Letter click here


Help is greatly appreciated ... thanks,
Mike