RE: Phpmailer sending duplicate messages...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux