Jay,
The $to variable is [EMAIL PROTECTED]
Then the emails are pulled from the database in the following order:
email1, email2, email3
The result is:
[EMAIL PROTECTED] � gets a copy of each message (fine since its the
$to address for each mail)
email1 � gets a copy of each message
email2 � gets his message and the one for email3
email3 � gets his own message
Any ideas?
Enda
--
On 9/5/03 2:29 PM, "Jay Blanchard" <[EMAIL PROTECTED]>
wrote:
> [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
- + - + - + - + - + - + - + - + - + - + - + - + -
Enda Nagle
+353 86 168 0774
[EMAIL PROTECTED]
www.nightsol.net
- + - + - + - + - + - + - + - + - + - + - + - + -