2017-10-10 24 views
-1

我最近收到了简报,并在主题行表情符号..表情符号在电子邮件主题行

我复制/粘贴从通讯

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

源主题我使用phpmailer发送电子邮件..如何在发送消息时重复使用相同的图标?

+0

的可能的复制[如何绘文字从Unicode在PHP转换?](https://stackoverflow.com/questions/33547233/how-to-convert-emoji- from-unicode-in-php) – yivi

+2

[用PHPMailer发送unicode表情符号](https://stackoverflow.com/questions/39365797/send-unicode-emoji-with-phpmailer) –

回答

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

这会放一把火表情符号像在开始上述与PHPMailer的发送时,该字符串的结尾。 Rememeber在邮件编码设置为UTF-8