Fix WordPress email (3 minutes)
Send yourself a sample, see why emails go missing, and fix it with a free mail plugin, the right From address and SPF, DKIM and DMARC.
GoConsent emails you when something needs attention, and privacy request emails have legal deadlines, so they need to arrive. Most WordPress sites can send email, but it often lands in spam or is rejected. Here’s how to check yours and fix it in a few minutes.
1. Send yourself a sample
In GoConsent, open Settings and find Alerts & extras. Beside Email alerts, click Send me a sample. It goes to your own WordPress user’s email address, and works even when alerts are off. The free version sends a sample checkup alert; Pro sends a sample monthly report with your site’s real numbers. Both are marked “[Sample]”.
- Sample sent (green): WordPress handed the email over. It shows the address it went to and the From address your site used. Give it a few minutes. If it hasn’t arrived after 5 minutes, GoConsent shows what to check.
- Your site couldn’t send the sample (red): your server refused, and GoConsent shows the error WordPress gave. Nothing GoConsent sends will arrive until this is fixed. Go to step 2.
- Sent through a mail plugin (blue): your site already uses a mail plugin such as WP Mail SMTP or FluentSMTP. If the email doesn’t arrive, open that plugin (GoConsent links to it) and check its email log or connection.
Check your spam or junk folder too. You can send 5 samples every 10 minutes.
Why emails go missing
Out of the box, WordPress sends email through your web server and signs it from wordpress@ followed by your domain. Your server isn’t your email provider, so nothing proves the email really comes from your business. Gmail, Outlook and Yahoo see an unproven sender and send it to spam, or turn it away. Since February 2024, Gmail requires every sender to authenticate their email, and large senders must do more.
2. Install a free mail plugin
A mail (SMTP) plugin sends WordPress’s email through a real email service instead of your web server. Two good free ones are WP Mail SMTP and FluentSMTP. Install one from Plugins › Add New Plugin, then connect it to one of these:
- The email you already use for your business, such as Google Workspace or Microsoft 365. The plugin walks you through signing in. Good for small sites that send a few emails a day.
- Your host’s email, if your hosting includes email accounts. Use the mailbox’s SMTP server, port and password from your host.
- A sending service such as Brevo, Mailgun, SendGrid or Amazon SES. Best for shops and sites that send a lot of email; most have a free tier.
Then use the plugin’s own test email, and come back to GoConsent and click Send another. GoConsent should now say Sent through, with the plugin’s name.
3. Use a From address at your own domain
In the mail plugin, set the From email to an address at your own domain that your email service is allowed to send for, such as hello@ or notices@ your domain. Avoid wordpress@ (mail filters distrust it) and avoid a Gmail, Outlook or Yahoo address: those providers publish DMARC rules, so mail from your website that claims to be from them is likely to go to spam or be rejected.
SPF, DKIM and DMARC, in plain English
These are three short text records in your domain’s DNS (where your domain is managed: your registrar, your host or a service like Cloudflare). Your email service gives you the exact values to copy in.
| Record | What it does | Think of it as |
|---|---|---|
| SPF | Lists the servers that may send email for your domain. | A guest list |
| DKIM | Adds a signature to each email that proves your domain sent it and nobody changed it on the way. | A wax seal |
| DMARC | Tells receiving servers what to do with email that fails SPF and DKIM (nothing, spam folder, or reject) and can send you reports. | The house rules |
Gmail asks every sender to set up SPF or DKIM, and senders of 5,000 or more emails a day to Gmail to have SPF, DKIM and a DMARC record. Yahoo has similar rules. A site sending GoConsent’s alerts is far below that, but setting up all three is the surest way to land in the inbox. A simple DMARC record to start with is v=DMARC1; p=none, which only watches.
Only one SPF record is allowed per domain. If you send from more than one service, combine them in that one record instead of adding a second.
Ask your host
If your server refuses to send email at all, or you’re not sure what to use, ask your host. Copy this:
“My WordPress site can’t send email (or it goes to spam). Do you include email or an SMTP relay I can use with an SMTP plugin, and which server, port and login should I use? Can you help me add SPF and DKIM records for my domain?”
- Some hosts include email. WPMU DEV hosting, for example, sends site emails from a no-reply address with daily limits, and includes email accounts you can connect with an SMTP plugin.
- Some managed hosts don’t host email. WP Engine, for example, sends basic WordPress email with an hourly limit and no logs, and recommends connecting a third-party email service with a plugin such as WP Mail SMTP or Post SMTP.
- Many hosts block port 25. Mail plugins use 587 or 465 instead, or connect over the email service’s own API.
Still not arriving?
- Check the mail plugin’s email log: it shows whether the email left your site and what the receiving server said.
- Make sure your WordPress user’s email address (Users › Profile) is right. Samples go there; alerts go to the site admin email in Settings › General and to your privacy contact email.
- Add your From address to your contacts, and mark the sample “Not spam” if it landed there.
- Important alerts also show on GoConsent’s Overview, and privacy requests on the Requests tab, so nothing is lost while you fix email.
Still stuck? Contact support and tell us which page you were on.