I am currently setting up my webserver so then i can send emails via PHP Code, the problem i have is that the emails sent via php mail() always send to my gmail spam where as when im sending emails via the SMTP Server the same VPS has on it on Gmail it dont send to spam.
Is their anyone that can help with this?
Updates:
Sending Via Ryan@Ryanteck.org.uk & Noreply@Mc-Serverlist.co.uk For PHP Mail() (Same happens with ryan@ryanteck.org.uk)
When Sent Via PHP Mail() Or Webmin Email It Sends To Spam
When Sent Via SMTP Server Via Gmail it sends ok
PHP Mail Raw Message : http://pastebin.com/TP2UfDP7 (This is the Noreply@Mc-Serverlist.co.uk)
Webmin Email System : http://pastebin.com/2VWvDd7v
Gmail SMTP : http://pastebin.com/wgewGnmk
Your vps doesn't have rDNS configured and the HELO points to a different ip. inconsistencies in HELO and missing rDNS trigger many spamfilters.
Set a HELO Hostname whose A-Record points back to your VPS and configure the rDNS (PTR) to the same hostname.
Example:
Also your senderdomains have somewhat strange "TXT" records:
you may want to change these into correctly formatted SPF records, eg.
Set the
-f noreply@myweb.com
parameter, as described in PHP refTry this: