RE: [PHP-DB] Phpmailer sending duplicate messages...

From: Date: Thu, 01 Nov 2007 21:01:07 +0000
Subject: RE: [PHP-DB] Phpmailer sending duplicate messages...
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-44292@lists.php.net to get a copy of this message
> You're re-using the same message each time around the loop. Each time > you call AddAddress you're, erm, adding another address. You either need > to reset the recipients or reset the message each time round the loop > (I'm not familiar with Phpmailer so I have no idea how to do this). > > -Stut Stut is right. If you put $mail = new PHPMailer(); within the while loop, you should be okay. _________________________________________________________________ Climb to the top of the charts!  Play Star Shuffle:  the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

« previous php.db (#44292) next »