View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002458 | NOALYSS | Bug | public | 2026-04-01 13:13 | 2026-09-24 15:54 |
| Reporter | danydb | Assigned To | danydb | ||
| Priority | normale | Severity | mineur | Reproducibility | toujours |
| Status | résolu | Resolution | corrigé | ||
| Target Version | 10.2 | Fixed in Version | 10.3 | ||
| Summary | 0002458: Email : en PHP, depuis Linux , le return-path doit être spécifié | ||||
| Description | Quand on envoie depuis PHP un email via SMTP (concerne uniquement sendmail_core), le fait d'être sous Linux avec Postfix, l'email n'a pas le header correct pour le Return-Path. Pour corriger cela | ||||
| Steps To Reproduce | Envoyer un email depuis linux, dans les sources on verra que le header Return-Path est incorrect : c'est l'utilisateur linux avec le nom de l'hôte. Correction ajouter un 5e paramètre -f no-reply@noalyss.eu !mail($this->mailto, $this->subject, $this->content,$this->header,"-f no-reply@noalyss.eu")) | ||||
| Additional Information | Exemple qui corrige ce problème === PHP define ("NOALYSS_URL","test_email"); include "../../noalyss/include/constant.php"; class Sendmail_Local extends \Sendmail_Core { /** *@brief Send email * @throws Exception */ function send() { try { $this->verify(); } catch (Exception $e) { throw $e; } if (!mail($this->mailto, $this->subject, $this->content,$this->header,"-f no-reply@noalyss.eu")) { throw new Exception('send failed'); } } } // ini_set("mail.force_extra_parameters","-fno-reply@noalyss.eu"); $sendmail = new \Sendmail_Local(); $sendmail->set_from("no-reply@noalyss.eu"); $sendmail->set_format("HTML"); $sendmail->mailto("danydb+acceptance@noalyss.eu"); $sendmail->set_subject("test email reply-to"); $message_html =<<<EOF <div> <h1> Test email sender</h1>
</div> EOF; $sendmail->set_message($message_html); $sendmail->compose(); $sendmail->send(); | ||||
| Tags | No tags attached. | ||||
| Extension Noalyss | Aucun | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-04-01 13:13 | danydb | New Issue | |
| 2026-04-01 13:13 | danydb | Assigned To | => danydb |
| 2026-04-01 13:13 | danydb | Status | new => confirmed |
| 2026-04-01 17:54 | danydb | Status | confirmed => resolved |
| 2026-04-01 17:54 | danydb | Resolution | open => fixed |
| 2026-04-01 17:54 | danydb | Fixed in Version | => 10.2 |
| 2026-09-24 15:54 | danydb | Fixed in Version | 10.2 => 10.3 |