Mail en copie cachée

This commit is contained in:
fredtempez 2019-02-16 19:02:12 +01:00
parent f4f0049256
commit 6f4e058b67
1 changed files with 2 additions and 2 deletions

View File

@ -964,11 +964,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->addAddress($to);
$mail->addBCC($to);
}
$mail->isHTML(true);
$mail->Subject = $subject;