0

我正在设置一个小工具来从 PHP 中发送邮件/时事通讯。现在我想添加一个显示在每封邮件中的自定义图标,但不知道如何实现这一点。

有一些公司,比如 Facebook 和 Paypal,已经在使用它。这些图标至少在 iPhone 和 MacOSX 的 Sparrow 上受支持,但可能对于许多其他客户端......

Sparrow 的示例截图:

查看 Sparrow 的示例屏幕截图

在此处输入图像描述

任何人都可以给我一个关于如何实现这样的事情的提示吗?

4

2 回答 2

1

There's nothing in the RFCs for mail headers to define any icons to show. Most programs doing so will do this based on your contact list or some kind of internal association list (the case here I guess). As an alternative, the program could use services such as Gravatar, but there's really nothing you can do when composing the mails.

于 2012-12-26T11:31:39.593 回答
0

如前所述,对此没有本机解决方案。但是,如果您只想显示提供程序图标,您可以在数据库中设置一个包含一堆域和图标的表。然后解析发件人电子邮件地址中的域并检查数据库中是否有任何图标。

您还可以获取域的图标并将其显示出来。

于 2012-12-26T11:43:15.823 回答