trezeled
14/11/2013, 08h34
Voici la partie de l'entête qui pose souci
Date: Thu, 14 Nov 2013 08:32:49 +0000
Subject: test
To:
X-PHP-Originating-Script: 0:test.php
From: "nom.prenom@" nom.prenom@domaine.fr>
MIME-Version: 1.0
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Return-Path: nom.prenom@domaine.frfritz2cat
12/11/2013, 20h07
Poste les en-têtes originaux, stp.
Outlook te le permet.
trezeled
12/11/2013, 15h43
En essayant d'envoyer un mail en utilisant la fonction mail de php, j'ai le problème suivant :
Configuration de l'entête dans le fichier PHP
$_charset = 'ISO-8859-1';
$_email = 'nom.prenom@domaine.fr';
$_subject = 'test';
$_body = 'test';
$_headers = 'From: '.utf8_decode('nom.prenom@domaine.frr').' '.chr(10);
$_headers .= 'Mime-Version: 1.0'.chr(10);
$_headers .= 'Content-Type: text/html; charset='.$_charset.chr(10);
$_headers .= 'Content-Transfer-Encoding: quoted-printable'.chr(10);
$_headers .= 'Return-Path: nom.prenom@domaine.frr'.chr(10);
$_returnPath = "-fnom.prenom@domaine.fr";
Envoi du mail :
mail($_email, $_subject, $_body, $_headers, $_returnPath);
Mail en reception :
L'entête du mail est mal interprété pour le from
From : nom.prenom@ nom.prenom@domaine.fr>
C'est le caractère @ qui pose souci dans la première partie du from mais je ne peux pas le supprimer. Le problème a juste lieu lorsque que le destinataire est en exchange 2010.
PAs de soucis sur les gmail, laposte, sfr, free.....
Y-a t'il une configuration sur exchange ??? ou autre ?