Re: Email to database

From: Date: Fri, 05 Sep 2003 13:56:54 +0000
Subject: Re: Email to database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161763@lists.php.net to get a copy of this message
Jay, The $to variable is enda.nagle@nightsol.net Then the emails are pulled from the database in the following order: email1, email2, email3 The result is: enda.nagle@nightsol.net ­ 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" <jay.blanchard@niicommunications.com> 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 enda@nightsol.net www.nightsol.net - + - + - + - + - + - + - + - + - + - + - + - + -

« previous php.general (#161763) next »