RE: [PHP] Email to database

From: Date: Fri, 05 Sep 2003 13:29:13 +0000
Subject: RE: [PHP] Email to database
Groups: php.general 
Request: Send a blank email to php-general+get-161761@lists.php.net to get a copy of this message
[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

« previous php.general (#161761) next »