Email from PHP has broken Subject header encoding

Update   For a more practical and up-to-date answer, have a look at Palec’s answer. The specified character encoding in Content-Type does only describe the character encoding of the message body but not the header. You need to use the encoded-word syntax with either the quoted-printable encoding or the Base64 encoding: encoded-word = “=?” charset “?” encoding … Read more

Should I use the Reply-To header when sending emails as a service to others?

I tested dkarp’s solution with gmail and it was filtered to spam. Use the Reply-To header instead (or in addition, although gmail apparently doesn’t need it). Here’s how linkedin does it: Sender: messages-noreply@bounce.linkedin.com From: John Doe via LinkedIn <member@linkedin.com> Reply-To: John Doe <John.Doe@gmail.com> To: My Name <My.Name@gmail.com> Once I switched to this format, gmail is … Read more