[9.0.01] phpmailer : addAddress pour individuelle et non array
This commit is contained in:
parent
7d74d6285f
commit
cf4bd854d8
@ -968,11 +968,11 @@ class common {
|
||||
$mail->addReplyTo('no-reply@' . $host, $this->getData(['config', 'title']));
|
||||
if(is_array($to)) {
|
||||
foreach($to as $userMail) {
|
||||
$mail->addAddress($userMail);
|
||||
$mail->addBCC($userMail);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$mail->addBCC($to);
|
||||
$mail->addAddress($to);
|
||||
}
|
||||
$mail->isHTML(true);
|
||||
$mail->Subject = $subject;
|
||||
|
Loading…
Reference in New Issue
Block a user