PHP mail set from image

扶醉桌前 提交于 2019-12-13 10:00:33

问题


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

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


回答1:


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

  • GMail will show the user's Google+ profile avatar if available
  • Apple Mail will show the user's avatar shown in your address book
  • etc.

So the avatar is not part of the mail itself.

Two workaround suggestions:

  • 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.


来源:https://stackoverflow.com/questions/25282933/php-mail-set-from-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!