Anomalie #9804
[sendmail] mauvaise gestion des accents dans l'expéditeur du mail
Description
Si l'expéditeur du mail contient des accents, ex : élodie Fernandez elodie.fernandez@uneadresse.com
Le mail ne sera pas envoyé car il fait planter l'envoi au niveau du relais SMTP (marqué comme envoyé dans Maarch par contre).
Pb rencontré au CD 45.
Il faut trouver une solution pour soit bien encoder le "FROM" du mail, soit supprimer les accents.
ex :
$unwanted_array = array( 'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E',
'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U',
'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c',
'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o',
'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y');
$userInfo['firstname'] = strtr($userInfo['firstname'], $unwanted_array);
J'ai appliqué cette solution au CD45 pour débloquer la situation.
History
#1 Updated by Emmanuel DILLARD about 4 years ago
- Status changed from A traiter to Prêt à embarquer
- Assignee set to EDI PO
#2 Updated by Emmanuel DILLARD almost 4 years ago
- Project changed from Backlog to CURRENT SPRINT
- Status changed from Prêt à embarquer to En cours de dev (S)
- Target version changed from 18.10 (support sécurité) to 19.04 (Support sécurité)
- Tags Courrier 18.10.8 added
#5 Updated by Emmanuel DILLARD almost 4 years ago
- Status changed from En cours de dev (S) to Développé / Analysé (S)
#6 Updated by Emmanuel DILLARD almost 4 years ago
- Project changed from CURRENT SPRINT to Backlog
#7 Updated by Emmanuel DILLARD almost 2 years ago
- Project changed from Backlog to Backlog Courrier
- Target version changed from 19.04 (Support sécurité) to 19.04 (Sécurité)