Skip to main content

UTF-8 Mails versenden

This blog post might be outdated!
This blog post was published more than one year ago and might be outdated!
· One min read
Stephan Hochdörfer
Head of IT Business Operations

UTF-8 codierte E-Mails mit PHP Board-Mitteln zu versenden ist im Grunde kein Hexenwerk:

function mail_utf8($to, $subject, $message) {
$header = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/plain; charset=UTF-8' . "\r\n";
mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $message, $header);
}