本文介绍了使用PHP的电子邮件主题中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用我添加的php邮件功能在电子邮件主题中添加诸如公司徽标之类的图像
I want to add image like company logo in email subject using php mail function i have added
$subject = "<img src=\"https://www.donndraper.com/images/logo.png\" width=\"50px\">");
$header = "From: $email\n Content-Type: text/HTML;";
推荐答案
JerrySeeger试图以一种相当居高临下的方式说,电子邮件不支持主题图像.
What JerrySeeger was trying to say, in a fairly condescending manner, is that e-mail does not support images in the subject.
SMTP协议是在HTML发明20年前设计的.
The SMTP protocol was designed 20 years before HTML was even invented.
根本没有你想要的.
这篇关于使用PHP的电子邮件主题中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!