diff --git a/htdocs/includes/simplemail/class.mail.php b/htdocs/includes/simplemail/class.mail.php index 6b430a0e784..9b4b5890a49 100644 --- a/htdocs/includes/simplemail/class.mail.php +++ b/htdocs/includes/simplemail/class.mail.php @@ -332,6 +332,7 @@ class simplemail { // Mail send by PHPmail function phpmail() { + global $conf; // DOLCHANGE LDR Fix the To in header was not filled foreach ($this->recipientlist as $key => $to) {