views:

13

answers:

0

im working with phpmailer class.i want to add multiple recipients to my mail,for this im using this code :

foreach ($emails as $i => $val)
    $mail->AddAddress($your_email, $val);

but it sends each mail twice for each recipient!! i hardly remember that phpmailer had a function that could get an array argument(as Email Addresses) and add them automatically.but i cant find it! is there such a function?i really need help