Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emoji in email subject line

Recently I have received newsletters with emojis in the subject line..

I have copy/pasted a subject from the source of a newsletter

Subject: =?utf-8?Q?=F0=9F=94=A5=C2=A06=20days=20left=20until=20we=20meet=20you=20at=20TechBBQ=C2=A0=F0=9F=94=A5?=

enter image description here

I use phpmailer to send emails.. How is it possible to reuse the same icons when sending messages?

like image 233
clarkk Avatar asked Nov 02 '25 10:11

clarkk


1 Answers

$subject = "\xF0\x9F\x94\xA5 test \xF0\x9F\x94\xA5";

This will put a fire emoji like the above in the beginning and the end of the string when sending with phpmailer. Rememeber to set the encoding in the mail to UTF-8

like image 54
clarkk Avatar answered Nov 04 '25 00:11

clarkk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!