php - 让 Gmail 自动显示我在 HTML 电子邮件中嵌入的图片?

标签 php html email gmail

我正在使用 Zend_Mail 在 PHP 中构建 HTML 电子邮件,我想嵌入/附加/以某种方式让 Gmail 自动显示它们而不提示用户。我该怎么做?

最佳答案

谷歌的 Bulk Sender Guidelines假设 Gmail 会自动显示已验证其域的发件人的图片:

To ensure that Gmail can identify you:

  • Use a consistent IP address to send bulk mail.
  • Keep valid reverse DNS records for the IP address(es) from which you send mail, pointing to your domain.
  • Use the same address in the 'From:' header on every bulk mail you send.

We also recommend publishing an SPF record, and signing with DKIM or DomainKeys.

By authenticating, inline images you send will be shown automatically. Recipients will not need to click the "Display images below" link.

Google 提供了一个页面来了解更多关于 email authentication 的信息.

关于php - 让 Gmail 自动显示我在 HTML 电子邮件中嵌入的图片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11728504/

相关文章:

html - 如何禁用 CSS 上的悬停效果?

javascript - 如何等待在 Canvas 中加载图像

android - 知道android :onClick came from and retrvieve children data在哪里

c# - 通过 Gmail SMTP 发送电子邮件无限期挂起而没有错误

php - Youtube iframe 解码为 htmlentities

php - 了解 IF 语句中的逻辑运算符 OR

javascript - 如何将图像从数据库传递到javascript?

javascript - 将 CSS3 过渡添加到 jQuery Animate 脚本

php - 我应该使用 php 邮件功能还是 phpmailer?

PHP 为什么继续比使用 break 慢