Browse Source

[9.0.01] phpmailer : addAddress pour individuelle et non array

pull/5/head
fredtempez 3 years ago
parent
commit
cf4bd854d8
  1. 4
      core/core.php

4
core/core.php

@ -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…
Cancel
Save