如何强制电子邮件程序使用php显示使用html电子邮件发送的图像? [英] How can I force email programs to show images send in html email using php?
问题描述
有没有办法强制电子邮件程序显示由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屋!