What Html Entity To Use In The Email Subject Line For A Heart?
This question may sound like stupid but I tried all possible HTML entities and the subject line for the email I send is still not showing the heart on Apple devices (iPhone, iPad,
Solution 1:
The subject line is part of the email headers. The email headers may only contain ASCII characters. The subject line is not being interpreted as HTML or anything else, it's plain text. You need to embed the character as Unicode character, but you cannot do this since the headers must be in ASCII. To embed any non-ASCII characters in a header, you need to use a MIMEEncoded-Word.
See mb_encode_mimeheader
, read its examples.
The resulting header will need to look something like this:
Subject: =?utf-8?B?4p2k?=
Which decodes to this in the mail client:
❤
Solution 2:
With regards to your question here: you may have picked the wrong heart. Try ♥ instead of ❤. The first one should render on a BlackBerry (and Android 2.2), too, as this test shows. The latter one, however, doesn't.
Post a Comment for "What Html Entity To Use In The Email Subject Line For A Heart?"