Fix WordPress and WooCommerce emails going to spam

Contact form messages that never arrive and order confirmations that land in spam usually have the same cause: WordPress is sending email without proving it's allowed to.

In short: by default, WordPress hands email to your web server's basic mail function, which doesn't prove the message is allowed to use your domain. Install an SMTP plugin, connect it to a real mailbox or email service, make sure that service passes SPF and DKIM, and stop putting your visitors' addresses in the From field.

Why WordPress emails fail

  • No authentication. Messages leave from the web server, which often isn't listed in your SPF record and doesn't sign with your DKIM key. Gmail and Outlook can't tell them apart from forgeries.
  • The wrong From address. Many contact forms put the visitor's email address in the From field so you can reply to them. Your server isn't allowed to send email as gmail.com or yahoo.com, so those messages fail DMARC and are often rejected outright.
  • Shared server reputation. On shared hosting, your site sends from the same IP address as many other sites.

Fix 1: send through SMTP

An SMTP plugin, such as WP Mail SMTP or FluentSMTP, makes WordPress log in to a real email account or service and send through it. Pick one of these:

  • Your Google Workspace or Microsoft 365 mailbox. Good for contact forms and low volumes. Most plugins connect with a secure sign-in rather than storing your password.
  • A transactional email service such as Brevo, SendGrid, Mailgun or Amazon SES. Best for WooCommerce stores that send many order emails.
  • Your cPanel mailbox. Works, but still sends from the shared server.

Some hosts block outgoing SMTP connections. If the plugin's test fails with a connection error, choose a service the plugin connects to through its API instead.

Fix 2: authorise the service in DNS

Whichever service you choose, add its include: value to your existing SPF record and publish its DKIM record. Then confirm with the free domain checker. Without this step, the plugin changes how mail is sent but Gmail still can't verify it.

Fix 3: correct the From and Reply-To

In your form plugin's email settings:

  • Set From to an address on your own domain, such as [email protected].
  • Put the visitor's address in Reply-To, so pressing Reply still answers them.

Contact Form 7, WPForms, Gravity Forms and Fluent Forms all have a Reply-To or additional headers setting for this. In Contact Form 7, add Reply-To: [your-email] under Additional headers.

WooCommerce order emails

Go to WooCommerce > Settings > Emails and set the From address to one on your own domain that your SMTP service is allowed to send for. Place a test order, and check the customer email arrives in the inbox and the admin notification reaches you.

Test it

  1. Use the SMTP plugin's built-in test email.
  2. Submit your contact form from your phone using a Gmail address.
  3. Open the email in Gmail, choose Show original, and check for SPF or DKIM PASS and DMARC PASS.

Questions

Why do contact form emails arrive for me but not for some customers?

Your own mailbox may be on the same server, so it accepts the message without checks. Gmail and Outlook apply SPF, DKIM and DMARC checks.

Is it safe to use my email password in an SMTP plugin?

Prefer plugins that connect to Google or Microsoft with a secure sign-in, or use a service API key that can only send email. Avoid storing your main mailbox password in WordPress.

Want it done for you?

I can set up SMTP, fix your form settings and DNS records, and test order and contact emails end to end.

Ask for a quote
Check domain WhatsApp