Blog

WordPress emails in spam or never received: fixing form and WooCommerce delivery

When your WordPress emails go to spam or never arrive, the cause almost always comes down to three things: the sender address, sending without authentication, and the domain's DNS. This article shows you how to check them one by one and read the exact reason for a refusal, so that form notifications and WooCommerce confirmations arrive in the inbox.

WordPress emails in spam or never received: fixing form and WooCommerce delivery

Key points

  • An email in spam has almost always been sent: it is the receiving end that judges it suspicious.
  • The sender must remain an address from your domain. The visitor's address goes into the Reply-To.
  • SPF, DKIM, and DMARC are set up in the domain's DNS, using the values provided by the sending service.
  • The Mail module enforces the sender, sends via SMTP, Gmail, Microsoft 365, or API, and shows the exact cause of a failure.
  • The second sending server, the failure alert, and the complete content in the log require nexya Pro.

Why WordPress emails end up in spam

When WordPress emails land in spam, or don’t arrive at all, the site is almost never broken. WordPress sent the message just fine. It’s the receiving server—at Gmail, Outlook, or your host—that deemed it suspicious and filed it as junk, or rejected it without telling anyone.

On the WordPress.org forums, the problem comes up in several forms: the Forminator form doesn’t send the email to the administrator, WooCommerce stops sending order confirmations, Contact Form 7 displays “message sent” even though nothing arrives. The symptom changes; the cause is often the same.

By default, WordPress entrusts its messages to the server’s PHP mail function. The message leaves without authentication, from a machine often shared with other sites, and sometimes with a sender address that doesn’t match the domain. To a spam filter, this is the exact profile of a spoofed message.

  • A sender that doesn’t match your domain.
  • An outbound message that doesn’t pass through any authenticated server.
  • A domain whose DNS doesn’t specify who is allowed to send on its behalf.

The primary suspect: the sender address

Each plugin can choose its own sender address. WordPress uses one by default, the form plugin imposes another, WooCommerce a third. If even one doesn’t match the sending server’s domain, those messages may be rejected or marked as spam while others aren’t. This creates the impression that “some emails go through, others don’t.”

The nexya Mail module enforces the sender. All messages from the site then go out with the same address, regardless of which plugin generated them. Choose an address from your own domain, preferably an inbox that actually exists, so that replies and any bounce messages have somewhere to land.

Forms: never write “on behalf of” the visitor

The most common mistake in Forminator or Contact Form 7 is putting the visitor’s address in the sender field of the notification. If someone fills out the form with a Gmail address, your site sends a message claiming to come from gmail.com. The receiving server checks, sees that your site has no right to write on behalf of Gmail, and rejects the message or marks it as spam.

The best practice is simple: the sender remains an address on your domain, and the visitor’s address goes into the reply field (Reply-To), in your form plugin’s notification settings. You still reply directly to the visitor without spoofing their address. With the Mail module, the sender is enforced anyway, preventing a forgotten setting in a form from derailing delivery.

Forms filled out by bots pose another problem: useless notifications, sometimes full of sketchy links, sent from your domain. The Mail module includes an invisible captcha for site forms, which filters out some of these submissions without asking anything of visitors.

The sender stays on your domain. The visitor’s address goes into the reply field.

WooCommerce: the order is placed, but the email doesn’t arrive

WooCommerce emails go through the exact same sending function as the rest of WordPress. They therefore suffer from the same issues: inconsistent sender, unauthenticated delivery, improperly declared domain. If form notifications aren’t arriving properly, store notifications rarely fare any better.

Before digging further, check your WooCommerce Email settings to ensure the relevant message type is enabled and has a recipient. Also, consider this detail: an online store sends far more messages than a brochure website. Hosting that limits the number of sends per hour might let the first emails of the day through and block the subsequent ones. The Mail module log shows this clearly, along with the reason provided by the server.

SPF, DKIM, and DMARC: what is configured in DNS, not in WordPress

These three DNS records tell receiving servers which servers are allowed to send on behalf of your domain (SPF), prove that the message wasn’t modified in transit (DKIM), and indicate what to do with a message that fails these checks (DMARC). Gmail and Outlook take these heavily into account.

No WordPress plugin creates these for you, and neither does the Mail module. They are added in your domain’s DNS zone at your registrar or host. The service you send through—whether it’s your mailbox’s SMTP server, Microsoft 365, Gmail, or an API provider—will give you the exact values to add. If you change your sending method, remember to update your SPF accordingly.

Choose an authenticated sending method

The Mail module offers 15 sending methods: an SMTP server, a Gmail or Microsoft 365 account connected via OAuth, or an HTTP API provider including Resend and SMTP2GO. In all cases, the message leaves from a server that authenticates itself and is authorized to write for your domain, rather than originating from the web server.

The simplest choice is often the email service you are already using. If your mailboxes are hosted on Microsoft 365, connect that account. If your host provides an SMTP server for your domain, use it. For a busy online store, an API-based provider is designed for that volume.

Getting the site's emails to arrive, in four steps

  1. 1

    Turn on the Mail module from the hub

    In the nexya hub, activate the Mail module. A turned-off module does not record anything on the site. Once turned on, it handles mailings from WordPress, forms, and WooCommerce.

    Turn on the Mail module from the hub
  2. 2

    Choose the sending method and sender

    Choose one of the 15 methods: SMTP, Gmail or Microsoft 365 account connected with OAuth, or API provider. Specify a sender address from your domain. It will be enforced for all messages from the site.

    Choose the sending method and sender
  3. 3

    Send the test email

    Send the test email to a Gmail address and an Outlook address. Check whether it arrives in the inbox or in the junk folder. If it ends up in spam, check the domain's SPF, DKIM, and DMARC.

  4. 4

    Run through the real process again and read the log

    Fill out the site's form and place a test order. If a message is missing, open the log: the cause given by the server, the recipient, and the subject are listed there.

Read the exact reason when the server refuses

The Mail module keeps an outbound log. When a message fails, it displays the cause provided by the server, along with the recipient and the subject. No more guessing: you read what the server replied.

A few responses come up frequently. A 401 code usually signals a refused username or password, or an OAuth connection that needs to be redone. A 550 code indicates a refusal, either from the recipient or the sender, depending on the accompanying message. A limit reached means the sending quota for the account or hosting has been exhausted.

One distinction matters. If the log shows no failures and the message is not in the inbox, the sending succeeded and it is the receiving end that has filed it elsewhere. The trail to follow then is the sender and the DNS, not the credentials.

What is free, what requires nexya Pro

Everything above is free: the enforced sender, the 15 sending methods, the test email, the log with the cause of failures, and the invisible captcha. The free version installs on as many sites as you want.

nexya Pro adds a second sending server that takes over when the first one fails, a failure alert, and, in the log, the complete content of the messages. Useful for a store where a lost order confirmation is quickly noticed.

FAQ

Why does my form display "message sent" when I am not receiving anything?

The form only confirms that WordPress has handed over the message. The receiving server can then refuse it or classify it as spam, most often because of the sender address or unauthenticated sending.

Does the Mail module configure SPF and DKIM?

No. These records are added in the domain's DNS zone. The service you are sending through gives you the values to add.

Do WooCommerce emails go through the Mail module?

WooCommerce sends via the WordPress mailing function. When the Mail module is active, these messages follow the sending method and sender you have chosen.

How do I know if an email failed or if it arrived in spam?

Check the Mail module log. A failure appears there with the cause given by the server. If there are no failures, the message has left and it is the receiving end that has filed it elsewhere.

The modules in this post

nexya mail nexya hub

Try nexya Pro free for 7 days

Every module, forms, newsletters and the page cache, on your site. No commitment.

See the plans Or discover the free version