diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index 68c9f8a97e2..ce0ad16e371 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -167,10 +167,9 @@ class Adherent $from=$conf->email_from; if ($conf->global->ADHERENT_MAIL_FROM) $from=$conf->global->ADHERENT_MAIL_FROM; - $mailfile = new CMailFile($subject,$this->email,$from,$mesg, - array(),array(),array(), - '', '', 0, $msgishtml); - + $mailfile = new CMailFile($subjectosend,$this->email,$from,$texttosend, + array(),array(),array(), + '', '', 0, $msgishtml); if ($mailfile->sendfile()) { return 1;