[9.0.01] phpmailer : addAddress pour individuelle et non array

This commit is contained in:
fredtempez 2019-03-05 09:38:09 +01:00
parent 7d74d6285f
commit cf4bd854d8

View File

@ -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;