Mail en copie cachée

This commit is contained in:
fredtempez 2019-02-16 19:02:12 +01:00
parent f4f0049256
commit 6f4e058b67

View File

@ -964,11 +964,11 @@ class common {
$mail->addReplyTo('no-reply@' . $host, $this->getData(['config', 'title'])); $mail->addReplyTo('no-reply@' . $host, $this->getData(['config', 'title']));
if(is_array($to)) { if(is_array($to)) {
foreach($to as $userMail) { foreach($to as $userMail) {
$mail->addAddress($userMail); $mail->addBCC($userMail);
} }
} }
else { else {
$mail->addAddress($to); $mail->addBCC($to);
} }
$mail->isHTML(true); $mail->isHTML(true);
$mail->Subject = $subject; $mail->Subject = $subject;