Whenever I use PHP to send emails to members of my site, the email ends up in the spam folder for most email providers like Gmail and Hotmail.
When I check the original
Its gonna be difficult to answer this without the real info (involved IPs, domainname, sender adress, full spf record etc). It also looks like this message wasn't sent to gmail directly, but retrieved from your server via Gmail Fetch (Header X-Gmail-Fetch-Info ), which makes the analysis even more complicated.
here are a few possibilities:
That means you are sending mail using email address which is not yours (e.g. your smtp server has domain name CompanyABC.COM while your're sending email whith sender: someone@CompanyDDD)
I found a very good post about spf check here. If you got your spf and other setting right and still getting email in spam folder wait for 3,4 hour as described in post
Google’s spam filters are very powerful. If you send too much spam to their server from an IP or IP block, they will block you for up to several hours at a time. You will receive spam, you will forward it. They will filter mail as spam that you don’t think is spam. No matter what, you will send email to Google that they think is spam, even if you disagree. By simply receiving more email than they appreciate in a given time frame, your forwarder will suddenly stop working for hours at a time (or worse).
The Return-Path header is empty. This means that during the SMTP conversation, the MAIL FROM command did not specify an email address where bounces are sent. It is the domain from this email address that SPF tests. If there is no email address, a softfail will result.