diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index 7ca72a8..31ec09a 100755 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -52,8 +52,6 @@ class Cronenvoimailadhrent public function envoyer_un_des_mail() { - $this->body = $this->body; - $this->email->clearAllRecipients(); $this->email->clearAttachments(); @@ -85,8 +83,9 @@ class Cronenvoimailadhrent } $this->email->Subject = $this->objet . " : ".$this->nomProduitSante; - $this->email->Body = $this->body; - + $this->email->Body = nl2br(htmlspecialchars($this->body)); + $this->email->AltBody = $this->body; + $to = $this->email->getToAddresses(); $cc = $this->email->getCcAddresses();