问题
Two scenarios:
- I recently downloaded the
phpMailer
and added it to mypublic_html
folder. - 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