I may have a simple problem here, but I don’t understand why it does not work, I have a study and many examples, I publish your current example, I have this from a tutorial where they explain this solution, but in my case this will not work, the subject in the letter that I receive does not display the letter “Ä Ü Ü ß ü” correctly.
$headers = array(); $headers[] = "MIME-Version: 1.0"; $headers[] = "Content-type: text/html; charset=utf-8"; $headers[] = "From: {$emailfrom}"; $to = " myemail@yahoo.de "; $subject = 'Betreff mit Ä, Ö und Ü ß ü'; $subject = '=?UTF-8?B?'.base64_encode($subject).'?='; $txt = "Hallo Sie haben das gewählt, am ä "; mail($to,$subject,$txt,implode("\r\n",$headers));
Usually they write everywhere in different textbooks, this is the solution, but in my case it does not work, why? Maybe this has something to do with the moon in my case? lol;)
source share