One of my WordPress sites is hosted on Hostgator (shared hosting) and the emails are set to fetch to Google via POP3. I also have Woocommerce installed on my site and use Cloudflare free CDN on that domain as well. Everything was going fine until recently I noticed that all the emails from WordPress site, where the primary email for everything is [email protected], were going to the Spam folder in Gmail. The main problem for me was that the Woocommerce order notifications were also going to Spam in my Gmail as well as customer’s Gmail. strangely the emails were going to inbox in other services like Outlook. Also, the emails sent directly from [email protected] were not going to Spam. So, definitely it was not the case of Hostgator server being used for spamming or my domain marked for spamming/phishing.
I talked to Hostgator support and as usual they said all the settings were fine on their side and there was nothing they could do. They told me that something might be wrong on Cloudflare’s part (DKIM settings or something). As I have a free account on Clouflare I don’t have access to any premium support. So, I just raised a support ticket while I kept looking for a solution myself.
And after trying a long list of claimed ‘solutions’ what worked for me was a sweet little WordPress plugin – Easy WP SMTP. I installed this free plugin on my WordPress site and it solved the Gmail spam problem instantly. Now all my WordPress and Woocommerce emails were going to Inbox. Here are the settings for this plugin –
From Email Address – [email protected]
From Name – Site Name or Anything else you want
SMTP Host – mail.domainname.com (This is what worked for me, you ca also try smtp.domainname.com)
Type of Encription – None (If you have an Https site you can choose SSL)
SMTP Port – 25 (If you used smtp.domainname.com instead of mail.domainname.com port will be 465)
SMTP Authentication – Yes (Always YES)
SMTP Username – [email protected] (Complete email ID)
SMTP Password – You webmail password