Anomalie #8335
[ANALYSE] Erreur envois de mails
Description
Lorsque l'on envoie des mails en utilisant la fonction mail php et que l'on force un expéditeur, une erreur se produit.
Correctif possible: apps/maarch_entreprise/tools/mails/htmlMimeMail.php l.725
$result = mail($to, $subject, $this->output, implode(CRLF, $headers), '-f' . $this->return_path)
==>
$result = mail($to, $subject, $this->output, implode(CRLF, $headers), '-f "' . $this->return_path. '" ');
En pratique, la variable return_path est collée telle qu'elle en ligne de commande. Ce qui donnait par exemple:
sendmail -i -t f bernard blier bblier@maarch.fr ...
plutôt que
sendmail -i -t f "bernard blier bblier@maarch.fr" ...
History
#2 Updated by Emmanuel DILLARD over 3 years ago
- Subject changed from Erreur envois de mails to [ANALYSE] Erreur envois de mails
- Status changed from A traiter to Prêt à développer
#3 Updated by Anonymous over 3 years ago
Informations complémentaires :
Thierry BACHAUMONT a écrit :
Bonjour, Voici ci-dessous la ligne que nous avons concernant le fichier MimeMail.php : $result = mail($to, $subject, $this->output, implode(CRLF, $headers), '-f' . $this->return_path); Elle correspond à la version 18.04.7 de l'application. Est-ce que cela correspond à votre suggestion ? Cordialement Thierry BACHAUMONT
Bonjour,
Cette ligne n'a pas été changée depuis la version 1.3 de maarch courrier.
Le problème se pose lorsque on utilise le mode mail (et pas smtp) dans les modules notifications et sendmail.
Cordialement,
#4 Updated by Emmanuel DILLARD over 3 years ago
- Project changed from Backlog to CURRENT SPRINT
- Status changed from Prêt à développer to En cours de dev (S)
- Target version set to 18.10 (support sécurité)
- Tags Courrier 18.04.8 added
#6 Updated by Emmanuel DILLARD over 3 years ago
- Assignee set to Maarch Courrier DEV TEAM
#7 Updated by Emmanuel DILLARD over 3 years ago
- Status changed from En cours de dev (S) to Développé / Analysé (S)
#8 Updated by Emmanuel DILLARD over 3 years ago
- Project changed from CURRENT SPRINT to Backlog
#9 Updated by Emmanuel DILLARD 12 months ago
- Project changed from Backlog to Backlog Courrier
- Target version changed from 18.10 (support sécurité) to 18.10 (Sécurité)