php - Laravel mail with accent in subject
I have a service sending mails.
My problem is the subject in the title contains accents, but they're not showing up in the mails.
When for example I put in:
->subject ( 'Olvidó de Contrase$ntildea' );
In the mail the subject appears like this 'Olvid de Contrase'
It doesn't show the ó and ñ letters.
Any help is much appreciated.
Answer
Solution:
Ok I find a solution, and is this
Works Perfect! Thanks for help!
Answer
Solution:
Subject is an email header. And headers may only contain ASCII characters.
So you have to encode your headers with base64 (B) and quote-printable (Q).
Read more about RFC 1342 (Representation of Non-ASCII Text in Internet Message Headers): http://datatracker.ietf.org/doc/rfc1342/