Je fais un code pour encoder l'expediteur des e-mails envoyes depuis mon site, sur une adresse electronique ca marche mais sur Gmail quand je fais cet encodage ca marche pas:
$fromEncoding = '[email protected]';
$to = "[email protected]"; // ca marche bien, je le recois
$subject = "sujet";
$message = "<b>This is HTML message.</b>";
$message .= "<h1>This is headline.</h1>";
// Pour envoyer un mail HTML, l'en-tête Content-type doit être défini
$header = 'MIME-Version: 1.0' . "\r\n";
$header .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$header .= 'From: =?UTF-8?B?'.base64_encode($fromEncoding).'?=\r\n';
merci