使用phpMailer和Gmail的域的电子邮件帐户

问题描述:

两种情况:

  1. 我最近下载了phpMailer,并将其添加到我的public_html文件夹中.
  2. 我将域的电子邮件帐户添加到我的gmail帐户.
  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.

两个问题:

  • 使用phpMailer和Gmail发送电子邮件(域的电子邮件帐户)时,当收件人收到邮件时,会出现红色问号,而不是Gmail的默认个人资料照片.
  • 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.

我需要做些什么来解决这个问题?我在phpMailer中搜索到我需要一些DKIMSPF键或其他内容.

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

您的邮件未经身份验证,您必须设置SPF配置,这是您的域(信封)上的TXT记录.例如,"v = spf1 ip4:204.200.197.197 -all"表示允许IP 204.200.197.197通过您的域发送邮件.

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.

更多信息到gmail红色问号 >://://support.google.com/mail/answer/180707?vid = 0-1292648286207-1480402255906& hl = zh_CN

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

更多信息到SPF记录 http://www.openspf.org/FAQ/Examples

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