您需要
AddAddress为每个收件人调用一次该方法。像这样:
$mail->AddAddress('person1@domain.com', 'Person One');$mail->AddAddress('person2@domain.com', 'Person Two');// ..更好的是,将它们添加为“抄送副本”收件人。
$mail->AddCC('person1@domain.com', 'Person One');$mail->AddCC('person2@domain.com', 'Person Two');// ..为了使事情变得容易,您应该遍历一个数组来做到这一点。
$recipients = array( 'person1@domain.com' => 'Person One', 'person2@domain.com' => 'Person Two', // ..);foreach($recipients as $email => $name){ $mail->AddCC($email, $name);}


