图像未通过电子邮件正确发送

时间:2023-01-17 08:16:38

I have created an email template, I use PHP to send the email, but the problem is that images that I have included inside the email template are not being displayed properly. It's showing the cross symbol. In Outlook, they mention "click here to download the image" - but nothing happens when I click.

我创建了一个电子邮件模板,我使用PHP发送电子邮件,但问题是我在电子邮件模板中包含的图像没有正确显示。它显示了十字符号。在Outlook中,他们提到“点击此处下载图像” - 但是当我点击时没有任何反应。

What is the solution for this? How can I send the email along with the image?

这是什么解决方案?如何将电子邮件与图像一起发送?

1 个解决方案

#1


You are best off not sending images in the email itself, but rather linking to them on the web. So, in your email, you have:

最好不要在电子邮件中发送图像,而是在网络上链接它们。所以,在你的电子邮件中,你有:

<img src="http://www.example.org/picture.jpg" alt="My Picture">

#1


You are best off not sending images in the email itself, but rather linking to them on the web. So, in your email, you have:

最好不要在电子邮件中发送图像,而是在网络上链接它们。所以,在你的电子邮件中,你有:

<img src="http://www.example.org/picture.jpg" alt="My Picture">