I’m using PHPMailer 5.2.0 and Google Apps for my domain email (let say my domain is mydomain.com).
Email sending works well, but Gmail accounts are not receiving the emails.
- Email sent to Yahoo: Delivered
- Email sent to Hotmail: Delivered
- Email sent to Gmail: Not Delivered
All sent emails appear in Sent Folder of Google App email.
It seems Gmail rejects the emails before it arrives even in Spam folder, doesn’t it?
I read about SPF and am trying to create SPF record. There are 4 fields for TXT record: Name, TTL, Type, and TXT Data. I’m not sure with Name field, should it be mydomain.com?
Yes, the name of the entry is that of your mail domain (the part after the @). Depending on you DNS software or the administration interface of your domain, you may need to end it with a period:
For example, Google returns the following SPF data (though this example is not for a Google Apps hosted MX):
But since you use Google Apps, your SPF entry needs to conform their SMTP settings. Follow Google instructions for SPF records.