diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 2274763d4b3..3f159b8a4ef 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -413,7 +413,7 @@ if ($_POST["action"] == 'send' || $_POST["action"] == 'relance') // Envoi de la facture $mailfile = new CMailFile($subject,$sendto,$from,$message,$filepath, $mimetype,$filename,$sendtocc); - if (! $mailfile->sendfile()) + if ($mailfile->sendfile()) { $msg='