Email from PHP has broken Subject header encoding
问题 My PHP script sends email to users and when the email arrives to their mailboxes, the subject line ( $subject ) has characters like a^£ added to the end of my subject text. This is obviously and encoding problem. The email message content itself is fine, just the subject line is broken. I have searched all over but can’t find how to encode my subject properly . This is my header. Notice that I’m using Content-Type with charset=utf-8 and Content-Transfer-Encoding: 8bit . //set all necessary