"php mail special characters utf8" Code Answer


Did you try iconv_set_encoding ?

This should work :

 iconv_set_encoding("internal_encoding", "UTF-8");

$subject = "Testmail — Special Characters";
$msg = "Hi there,nnthis isn’t something easy.nnI haven’t thought that it’s that complicated!";

mail(utf8_decode($to), utf8_decode($subject), utf8_decode($msg), utf8_decode($from)."nContent-Type: text/plain; charset=UTF-8nContent-Transfer-Encoding: 8bitn");?>
By demitextrade-40945e13a558 on December 11 2022

Answers related to “php mail special characters utf8”

Only authorized users can answer the search term. Please sign in first, or register a free account.