图片中的PHP邮件集 [英] PHP mail set from image

查看:123
本文介绍了图片中的PHP邮件集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向某人发送电子邮件时,这是我的化身(在这种情况下,是我的Google+帐户中的头像)

When I send an email to somebody, there is this avatar of me (in this case from my Google+ account)

如何扩展PHP mail()函数以在电子邮件中添加头像?

How can I extend my PHP mail() function to add an avatar in the emails?

推荐答案

这些头像是使用的邮件客户端提供的功能,例如:

These avatars are a feature provided by the used mail client, e.g.:

  • GMail将显示用户的Google+个人资料头像
  • Apple Mail将显示您的地址簿中显示的用户头像

因此头像不是邮件本身的一部分.

So the avatar is not part of the mail itself.

两个解决方法建议:

  • Use a GMail sender address assigned to your Google+ profile.
  • Add a VCard as attachement, see Formatting VCard in PHP and http://www.xmpp.org/extensions/xep-0153.html#publish - so the recipient gets a VCard to import into his address book.

这篇关于图片中的PHP邮件集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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