diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index 98e4f34..b3a4f81 100755 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -69,6 +69,15 @@ class Cronenvoimailadhrent $this->email->addAddress(trim($ad) ); } + if($this->emailCc>" ") + { + $ccs = explode(';', $this->emailCc); + foreach ($ccs as $cc) + { + $this->email->addCC(trim($cc) ); + } + } + // $this->email->Subject = $this->objet; // : ".$this->nomProduitSante; $this->email->Subject = $this->objet . " : ".$this->nomProduitSante; @@ -96,6 +105,7 @@ class Cronenvoimailadhrent { $this->idMail = $un_mail['idMail']; $this->emailDestination = $un_mail['email']; + $this->emailCc = $un_mail['emailCc']; $this->objet = $un_mail['objet']; $this->body = $un_mail['message'];