Ukuthumela ii-imeyile nge-PHP kusetyenziswe kakuhle kwiiklasi ezinamandla ezinje nge- PHPMailer . Imisebenzi esongelayo elula yenza ukuba kube lula ukusebenzisa umxholo kwi-UTF-8, ukufaka imifanekiso kunye nokuthumela izinamathiselo ezifihliweyo ngemigca embalwa yekhowudi. Ukuba ufuna ukuzisindisa ngaphezulu kwaye, ngokuchaseneyo nengcebiso, sebenzisa umsebenzi we- imeyile ye -PHP () , uya kuba neengxaki xa usebenzisa i-umlauts kunye ne-UTF-8 kutshanje.
Emva kokubiza umsebenzi nge
mail(
"vieldav@gmx.de", // Empfänger
"ä ö ü ß", // Betreff
"ä ö ü ß", // Inhalt
"From: ä ö ü ß <david@vielhuber.de>" // Header (Absender)
);
kwifayile ekhowudiweyo ye-UTF-8 sele ikhokelela kwiingxaki kwibhokisi engenayo: I-Outlook 2013 iselubabalo kwaye ibonisa yonke into ngokuchanekileyo:
Kodwa i-GMX ayixoleli izihloko ezingekhoyo kwaye ibonisa umxholo ombi, umthumeli kunye nomxholo:
Ukuba uthumela izihloko ezichanekileyo (umzekelo ngesiseko64_encode), ufumana
mail(
"vieldav@gmx.de", // Empfänger
"=?UTF-8?B?".base64_encode("ä ö ü ß")."?=", // Betreff
"ä ö ü ß", // Inhalt
"Content-type: text/plain; charset=utf-8\r\n"
."From: =?UTF-8?B?".base64_encode("ä ö ü ß")."?=<david@vielhuber.de>" // Header (Absender)
);
okokugqibela, iGMX ikwabonisa ukumelwa ngokuchanekileyo: