This guide shows exactly how to stop WordPress emails going to spam using SMTP. Follow each step carefully — what to do, where to do it, and how to verify.
Why WordPress Emails Go to Spam
By default, WordPress sends emails using PHP mail().
- No proper authentication
- No sender reputation
- Shared hosting IPs are often flagged
Result: Emails land in Spam.
Solution Overview
We fix this by using SMTP (Simple Mail Transfer Protocol), which sends emails through a trusted provider like Gmail.
What You Need
- A Gmail account (your email)
- WordPress admin access
STEP 1 — Enable Gmail Security
Where: Google Account → Security
What to do:
Turn ON: 2-Step Verification
STEP 2 — Create App Password (CRITICAL)
Where: Google Account → Security → App Passwords
What to create:
App: Mail
Device: Other (WordPress)
Result:
16-character App Password (use this instead of your normal password)
STEP 3 — Install SMTP Plugin
Where:
WordPress Dashboard → Plugins → Add New
What to install:
WP Mail SMTP
Then:
Activate Plugin
STEP 4 — Configure SMTP
Where:
WP Mail SMTP → Settings
Set EXACT values:
From Email: your-email@gmail.com
Force From Email: ON
From Name: Your Site Name
Mailer: Other SMTP
SMTP Host: smtp.gmail.com
Port: 587
Encryption: TLS
Authentication: ON
SMTP Username: your-email@gmail.com
SMTP Password: (App Password — no spaces)
Then:
Click Save Settings
STEP 5 — Test Email
Where:
WP Mail SMTP → Tools → Test Email
Send to:
your-email@gmail.com
Expected:
Email received in Inbox (not Spam)
STEP 6 — Fix WooCommerce Emails
Where:
WooCommerce → Settings → Emails
Set:
From Name: Your Site Name
From Address: your-email@gmail.com
Then check each email type:
- New Order
- Processing Order
- Completed Order
Ensure:
Recipient(s): your-email@gmail.com
STEP 7 — Fix WPForms Emails
Where:
WPForms → Edit Form → Settings → Notifications
Set:
Send To Email Address: your-email@gmail.com
From Email: your-email@gmail.com
Reply-To: {field_id="email"}
STEP 8 — Fix WordPress Admin Email
Where:
Settings → General
Set:
Administration Email Address: your-email@gmail.com
Confirm the change via email.
STEP 9 — Fix DNS (Optional but Recommended)
Where: Your DNS provider (Cloudflare / hosting)
SPF Record:
v=spf1 mx a ip4:YOUR_SERVER_IP include:spf.yourhost.com ~all
DMARC Record:
v=DMARC1; p=quarantine; pct=100; rua=mailto:postmaster@yourdomain.com
Common Mistakes
- Using normal Gmail password instead of App Password
- Not enabling 2-Step Verification
- Using different “From Email” across settings
- Using PHP mail instead of SMTP
- Setting customer email as From Email
Final Result
- Order emails → Inbox
- Contact form emails → Inbox
- Admin emails → Inbox
- No spam issues
Summary
Problem: WordPress emails go to spam
Cause: PHP mail without authentication
Fix: SMTP with Gmail
Result: Reliable inbox delivery
Frequently Asked Questions
Why are WordPress emails going to spam?
WordPress uses PHP mail by default, which lacks proper authentication. Email providers do not trust it, so messages often go to spam.
What is SMTP in WordPress?
SMTP (Simple Mail Transfer Protocol) sends emails through a trusted mail server like Gmail, improving delivery and reducing spam issues.
Do I need a plugin for SMTP?
Yes. WordPress does not support SMTP natively. A plugin like WP Mail SMTP is required to configure and send emails correctly.
Can I use Gmail for WordPress SMTP?
Yes. Gmail SMTP is reliable and easy to set up. You need to enable 2-Step Verification and generate an App Password.
Why is an App Password required?
Gmail blocks direct login from apps using normal passwords. App Passwords allow secure access for SMTP connections.
What port and settings should I use for Gmail SMTP?
SMTP Host: smtp.gmail.com
Port: 587
Encryption: TLS
Authentication: ON
Should the From Email match the SMTP email?
Yes. Using the same email for both improves trust and reduces the chances of emails going to spam.
Why should I not use customer email as From Email?
This causes email spoofing issues and increases spam risk. Always use your own email as the sender and set customer email as Reply-To.
Do I need to configure DNS records?
Not mandatory for basic SMTP setup, but adding SPF and DMARC improves long-term email deliverability and trust.
Will this fix WooCommerce email issues?
Yes. Once SMTP is configured, WooCommerce emails (orders, notifications) will use it automatically and deliver properly.