在身体phpMailer上发送图像的正确方法

时间:2018-05-31 15:07:02

标签: php phpmailer

我在这里找到了各种各样的问题,但我找不到我的错误。

在我的网站中,我有该路径的图像徽标(通过检查员浏览器):

src="/img/header_logo.png"

所以在phpMailer上我做了:

[...]
$mail->WordWrap = 50;                 
$mail->AddEmbeddedImage("/img/header_logo.png", "my-attach", "image/png");
$mail->Body = '<img alt="PHPMailer" src="cid:my-attach">';
[...]

但是img不工作。有什么提示吗?

0 个答案:

没有答案