Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 6 min read

WordPress Emails Not Sending in 2027: SMTP Setup and Delivery Troubleshooting

A visitor submits a contact form, but the business receives no enquiry. A customer pays for a WooCommerce order, yet the confirmation never arrives. Or an administrator cannot reset a password because the email is missin

WordPress Emails Not Sending in 2027: SMTP Setup and Delivery Troubleshooting

A visitor submits a contact form, but the business receives no enquiry. A customer pays for a WooCommerce order, yet the confirmation never arrives. Or an administrator cannot reset a password because the email is missing. These incidents appear similar but can originate in different places: a form might not trigger a notification, the site might fail to connect to a sending provider, or a receiving mailbox might reject a perfectly valid message. Start by identifying the failing step before installing another plugin.

How WordPress email actually works

WordPress commonly creates notifications through wp_mail(). A successful result from that function indicates that a message was handed to the sending transport, not that the recipient read it or even received it. Depending on server configuration, mail can be routed through PHP mail, authenticated SMTP or a provider API. The official WordPress mail administration guide explains why hosting policies and the sender domain matter.

  • No trigger: the form submission failed, the notification is disabled or a scheduled task did not run.
  • Sending failure: invalid credentials, a blocked network port or an unsuitable mailer configuration.
  • Delivery failure: authentication, domain alignment, mailbox filtering or a poor sender reputation.
  • Wrong destination: an outdated administrator address, forwarding rule or spam folder.

The distinction matters for both debugging and reporting. A plugin that displays β€œsent” may be confirming acceptance by the next system rather than final inbox placement.

Five checks before changing anything

  1. Reproduce the event. Submit a test form and check its success message, or create a controlled test order.
  2. Inspect the recipient. Compare the address in the form, WordPress settings and WooCommerce notification.
  3. Send an independent mail test. Use your mailer plugin to contact at least two mailboxes hosted by different providers.
  4. Read sending logs. Record specific errors such as authentication failure, timeout or sender rejection.
  5. Check delivery evidence. Look for spam filtering, provider delivery events and domain authentication results.

Website to inbox flow showing the triggering event and SMTP or API deliveryDiagnose the trigger, sending service and receiving mailbox separately.

SMTP, OAuth or an email API?

Most production sites benefit from routing transactional emails through an authenticated provider rather than relying entirely on a shared hosting server's default PHP mail. The WP Mail SMTP plugin is one widely used method for connecting WordPress to such a provider. A small brochure site with occasional enquiries and a busy WooCommerce shop with thousands of order emails may require very different delivery limits, retention policies and observability.

An SMTP connection usually requires a server hostname, port, encryption mode, user identity and an allowed authentication method. Port 587 commonly uses STARTTLS, while 465 commonly uses implicit TLS, but follow the provider's current instructions. Prefer modern authorisation methods such as OAuth or a dedicated API where supported. Do not put reusable passwords in public theme files or disable TLS certificate verification to hide errors. An API integration may be more practical if outgoing SMTP traffic is restricted by the host.

Set up a reliable sender

  1. Create a sender on a domain you control, such as [email protected]. This is an example address, not a preconfigured account.
  2. Use one active WordPress mail transport plugin. Multiple plugins changing wp_mail() can interfere with each other.
  3. Select the correct provider and choose SMTP, OAuth or API authentication as advised.
  4. Configure From Email and From Name and ensure forms cannot impersonate arbitrary senders.
  5. Publish the provider's required DNS authentication records.
  6. Run controlled tests for a contact form, password reset, admin notification and store email.

For contact forms, the visitor's email belongs in the Reply-To header, not in the sender's From field. Using an arbitrary visitor domain as the sender can fail authentication or lead to spam filtering. Store credentials in the plugin's secure configuration or another provider-approved method, and limit access to authorised administrators.

SPF, DKIM and DMARC: more than just SMTP credentials

SPF authorises systems that may send on behalf of the domain. DKIM adds a cryptographic signature to messages. DMARC defines a policy for checking domain alignment and receiving reports. Follow the Gmail sender requirements and your mail provider's record examples rather than copying generic DNS values from other sites.

A domain should not publish multiple separate SPF records. Combine all permitted senders into one valid record and ensure that the provider's DKIM selector is correctly configured. Apply a DMARC policy suitable for your environment, validate the changes and allow time for DNS propagation. Then inspect actual receiving headers or provider reports. SPF and DKIM alone do not guarantee inbox placement, and they do not solve a form that never triggered.

SMTP sender settings and DNS authentication checklist for WordPressConfirm the sender identity, transport, DNS authentication and real delivery.

Common SMTP errors and likely causes

  • Could not authenticate / 535: verify the account, approved login method, token or app password if permitted by the provider.
  • Connection timed out: check hostname, port, firewall and outbound restrictions set by hosting.
  • TLS certificate error: inspect the server hostname and certificate chain; do not bypass certificate validation.
  • Sender rejected / 550: verify the allowed From address, sender permissions and authenticated domain.
  • Test sent, inbox empty: inspect provider events, suppression lists, spam and quarantine.

Why WooCommerce order emails go missing

In WooCommerce β†’ Settings β†’ Emails, verify that the relevant notification is enabled, its recipient is correct and the order has the expected status. Not every event triggers the same message. WooCommerce maintains official email settings documentation and an email troubleshooting guide. They help distinguish a message that was never generated from one that failed after handoff.

For US or international stores, check the status updates produced by the actual payment gateway and the email queue if messages run asynchronously. A successful payment in the provider dashboard does not always mean WooCommerce recorded the completed payment. For stores in the UK and EU, customer notifications also need correct localisation, tax details and consent handling where applicable. Avoid using live customer addresses during repeated diagnostic tests.

Verify the fix with realistic tests

Test four paths independently: contact-form submission, password reset, notification to an administrator and an order notification to a customer. Verify that emails arrive at more than one provider, have the correct From identity and Reply-To address, and contain working links. Record failures without exposing passwords, API keys or unnecessary personal data in publicly accessible logs.

Use a provider that reports rejections and delivery failures when message volume becomes important. One successful test email is not an uptime guarantee: plugin updates, expired OAuth authorisation, DNS changes and hosting migrations can all break delivery later.

Frequently asked questions

Is SMTP for WordPress always paid?

No. Some hosting packages and providers include limited sending, but prices, quotas and logging features vary. Choose according to real transactional volume.

Can WordPress send mail from Gmail?

Yes, with a currently supported Google authentication method and appropriate account limits. A business domain and a dedicated sending identity are often more manageable for production use.

Why does a test email work while the contact form fails?

The transport may be healthy while the form notification is disabled, misdirected or never triggered. Inspect the form event and recipient first.

Does a working SMTP plugin prevent emails from landing in spam?

No. DNS alignment, sender reputation, message content and recipient filtering still affect delivery.

Need help restoring email delivery?

CianBay Studio provides WordPress troubleshooting, website integrations and technical maintenance for businesses in Ukraine and internationally. The goal is to restore complete notification workflows, not merely make one test button green.

Originally published at CianBay Studio.

Disclosure: This article was prepared with AI assistance.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.