Bug 2458: Si on envoie un email depuis Linux ,

le return-path doit être spécifié
This commit is contained in:
sparkyx 2026-04-01 17:17:09 +02:00
parent 5334bec89d
commit 5e8a39d78f
5 changed files with 51 additions and 11 deletions

View file

@ -42,10 +42,7 @@ class Sendmail extends Sendmail_Core
{
if ( $this->can_send() == false ) throw new Exception(_('Email non envoyé'),EMAIL_LIMIT);
if (!mail($this->mailto, $this->subject, $this->content,$this->header))
{
throw new Exception('send failed');
}
parent::send();
// Increment email amount
$repo =new Database();
$date=date('Ymd');
@ -167,7 +164,7 @@ class Sendmail extends Sendmail_Core
array(1,$p_dossier,$p_date));
return;
} else {
// update + sp_emaoun_email
// update + amount of sent emails
$p_repo->exec_sql("update dossier_sent_email set de_sent_email=de_sent_email+1 where dos_id=$1 and de_date=$2",
array($p_dossier,$p_date));
}