[snip]
Is there something like MoveNext I should use for the mail function?
If I put the $headers in the while loop it just keeps adding to the
$headers
instead of sending each mail separately as I want it to.

......
>         while($row = mysql_fetch_array($result1))
>           {
>         $headers .= "MIME-Version: 1.0\r\n";

[/snip]

I just noticed this....change the first header varaible line to

$headers = "MIME-Version: 1.0\r\n";

You are concatting the headers each time instead of resetting them

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to