mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +01:00
LSaddon::mail : Fixed Cc and Bcc usage
This commit is contained in:
parent
3f5d7a99a6
commit
417babf7e7
1 changed files with 14 additions and 1 deletions
|
@ -78,6 +78,19 @@ LSerror :: defineError('MAIL_01',
|
||||||
}
|
}
|
||||||
$headers["To"] = $to;
|
$headers["To"] = $to;
|
||||||
|
|
||||||
|
$to = array (
|
||||||
|
'To' => $to
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach(array_keys($headers) as $header) {
|
||||||
|
if(strtoupper($header) == 'BCC') {
|
||||||
|
$to['BCC'] = $headers[$header];
|
||||||
|
}
|
||||||
|
elseif(strtoupper($header) == 'CC') {
|
||||||
|
$to['CC'] = $headers[$header];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$ret = $mail_obj -> send($to,$headers,$msg);
|
$ret = $mail_obj -> send($to,$headers,$msg);
|
||||||
|
|
||||||
if ($ret instanceof PEAR_Error) {
|
if ($ret instanceof PEAR_Error) {
|
||||||
|
|
Loading…
Reference in a new issue