diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index 86f8367..e8ab3d8 100755 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -89,7 +89,10 @@ class Cronenvoimailadhrent $to = $this->email->getToAddresses(); $cc = $this->email->getCcAddresses(); - $bcc = $this->email->getBccAddresses(); + // $bcc = $this->email->getBccAddresses(); + + // $total = count($to) + count($cc) + count($bcc); + $totalDest = count($to) + count($cc); var_dump( array( @@ -100,16 +103,19 @@ class Cronenvoimailadhrent ); exit(); - if(!$this->email->send()) + if ($total>0) { - $this->marquermail($this->idMail, "9"); - } - else - { - $this->marquermail($this->idMail, "1"); - } - - usleep(2000); // Stoppe pour 2 millisecondes + if(!$this->email->send()) + { + $this->marquermail($this->idMail, "9"); + } + else + { + $this->marquermail($this->idMail, "1"); + } + + usleep(2000); // Stoppe pour 2 millisecondes + } } public function envoyer_les_mails()