forked from ZwiiCMS-Team/ZwiiCMS
Mail en copie cachée
This commit is contained in:
parent
f4f0049256
commit
6f4e058b67
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user