Domain's email account with phpMailer and Gmail

陌路散爱 提交于 2019-12-13 10:44:50

问题


Two scenarios:

  1. I recently downloaded the phpMailer and added it to my public_html folder.
  2. I add my domain's email accounts to my gmail account.

Two problems:

  • When sending emails (domain's email account) using phpMailer and Gmail, and when the recipient received it, the red question mark is appearing instead of the Gmail's default profile photo.

What do I need to do to solve this? I searched about in phpMailer that I need some DKIM and SPF keys or something.


回答1:


Your message is not authenticated, you must set a SPF configuration this is a TXT record on your domain (envelope). For Example "v=spf1 ip4:204.200.197.197 -all" means the ip 204.200.197.197 is allowed to send mails over your domain.

more information to gmail red question mark https://support.google.com/mail/answer/180707?vid=0-1292648286207-1480402255906&hl=en

more informations to spf records http://www.openspf.org/FAQ/Examples



来源:https://stackoverflow.com/questions/40843963/domains-email-account-with-phpmailer-and-gmail

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