如何强制电子邮件程序使用php显示使用html电子邮件发送的图像? [英] How can I force email programs to show images send in html email using php?

查看:140
本文介绍了如何强制电子邮件程序使用php显示使用html电子邮件发送的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在发送带有php的html电子邮件,它包含一个图像。一些电子邮件程序,如gMail有一个显示图像按钮。用户必须单击才能显示电子邮件中的图像。



有没有办法强制电子邮件程序显示由php生成的HTML电子邮件中发送的图像?



如果附加所有图片,那么通常会让它们显示出来(同时使您的SMTP带宽与收件人的带宽一起膨胀(这可以使您不受欢迎))。


I am sending an html email with php and it includes an image. Some email programs, such as gMail have a 'display images' button. The user has to click on that in order for the images in the email to show up.

Is there any way I can force email programs to show images that are sent within html emails generated by php?

解决方案

As a rule of thumb, email clients are configured to display attached images by default (e.g. those with a cid: URI scheme) and not load remote images (which can include tracking information).

If you attach all the images, then you'll usually get them showing up (while inflating your SMTP bandwidth use along with that of your recipients (which can make you unpopular)).

这篇关于如何强制电子邮件程序使用php显示使用html电子邮件发送的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆