In short
WooCommerce order emails usually land in spam or never arrive because WordPress sends them with PHP mail(), which has no authentication. The fix is to set up authenticated SMTP (465 SSL or 587 STARTTLS) through a real mailbox on your domain, verify your SPF and DKIM records, and keep bulk mailings from using up your hosting's hourly email limit.
In this guide
- Diagnose first: Is the email never created, or is it lost along the way?
- Why is PHP mail() unreliable?
- Step-by-step SMTP setup
- Checking SPF and DKIM
- How does the hourly sending limit affect order emails?
- Still not sending? Quick checklist
- Next step: choose your email infrastructure based on your sales volume
If WooCommerce order emails aren't being sent, the problem is almost never WooCommerce itself. By default, WordPress sends email with PHP's mail() function, without authentication; receiving servers find these messages suspicious and send them to spam or reject them. The lasting fix is to send through a real mailbox on your domain using authenticated SMTP and to set up your SPF/DKIM records correctly. Below, we first diagnose where the problem is and then fix it step by step.
Diagnose first: Is the email never created, or is it lost along the way?
Two different problems produce the same symptom. If you set up SMTP without telling them apart, it sometimes won't change the outcome.
Case 1: WooCommerce never triggers the email
WooCommerce emails are tied to order status changes. For example, the "Processing order" email to the customer is sent only when the order moves from "Pending payment" to "Processing". If the payment gateway's notification (callback) doesn't reach your site, the order status doesn't change and the email is never created. In that case, the problem isn't email but the payment integration; see the callback checks in the iyzico and PayTR payment gateway integration article.
Also check the following:
- Is the relevant email type enabled under WooCommerce > Settings > Emails?
- Is the recipient address for the "New order" email correct? By default, it's the site admin address.
- Do the order notes show a status change entry?
Case 2: The email is sent but doesn't arrive
If the order status changes correctly but the email doesn't arrive, the problem is delivery. Search for the recipient address in cPanel's Track Delivery tool. There you'll see whether the email left the server, whether the receiving server rejected it and the reason for the rejection. For the meaning of 550 or 554 codes in a bounce message, the mail delivery failed error codes article will help.
Why is PHP mail() unreliable?
- There's no authentication: The email isn't sent by logging in to a mailbox but directly on behalf of the web server's user.
- The sender address is inconsistent: By default, WordPress uses an address that doesn't exist, such as
wordpress@alanadiniz.com. - DKIM signing and alignment problems: When the sender address and the signing domain don't match, the DMARC check can fail.
- Errors are invisible:
mail()only hands the email to the local queue; WordPress doesn't know whether it reached the recipient.
As major providers such as Gmail and Yahoo have tightened their sender requirements, the chances of unauthenticated email reaching the inbox have dropped even further.
Step-by-step SMTP setup
1. Create a mailbox for sending
In cPanel, go to Email Accounts, create an account such as siparis@alanadiniz.com and set a strong password. Using a real address that customers can reply to also means you won't miss return requests and questions.
2. Note your SMTP details
| Setting | Value |
|---|---|
| SMTP server | mail.alanadiniz.com (the server listed on the "Connect Devices" screen in cPanel) |
| Port and encryption | 465 + SSL/TLS or 587 + STARTTLS |
| Authentication | On |
| Username | The full email address |
| Password | The mailbox password |
Don't use port 25; it's unencrypted and blocked on many networks.
3. Configure WordPress to use SMTP
There are two ways. The first is to install one of the popular SMTP plugins from the WordPress plugin directory (e.g., WP Mail SMTP or FluentSMTP) and enter the details above. These plugins offer a test email and a sending log, which makes diagnosis easier.
The second way is to configure PHPMailer, which WordPress uses, with a small "must-use" plugin instead of a regular plugin. First, add the password to your wp-config.php file:
define( 'SMTP_PASS', 'posta-kutusu-parolasi' );
Then create the file wp-content/mu-plugins/smtp.php (create the folder if it doesn't exist):
<?php
add_action( 'phpmailer_init', function ( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'mail.alanadiniz.com';
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 465;
$phpmailer->SMTPSecure = 'ssl';
$phpmailer->Username = 'siparis@alanadiniz.com';
$phpmailer->Password = SMTP_PASS;
$phpmailer->setFrom( 'siparis@alanadiniz.com', 'Mağaza Adınız' );
} );
If you'll use port 587, set Port to 587 and SMTPSecure to 'tls'.
4. Match the WooCommerce sender address
In the "From" address field at the bottom of the WooCommerce > Settings > Emails page, enter the address you log in to SMTP with. A mismatch between the sender address and the authenticated account is one of the most commonly overlooked delivery problems.
5. Test
Create a test order, manually set its status to "Processing" and check whether the email reaches both a Gmail address and a business address. Open the headers of the received email with "Show original"; you should see spf=pass and dkim=pass.
6. Simplify your email templates
Deliverability doesn't depend on technical settings alone. Adding lots of images, shortened links or all-caps promotional text to order emails raises the spam score. WooCommerce's default templates are simple and transactional; when customizing them, put the order details front and center and leave marketing content to separate newsletters. Using your store name as the sender name also helps customers recognize the email.
Checking SPF and DKIM
SPF is a DNS TXT record that lists which servers may send email on behalf of your domain. DKIM is a digital signature added to the email and verified against a public key in your domain's DNS. In cPanel, the Email Deliverability screen shows the status of both records and provides the suggested record if one is missing.
You can also check the records from the command line:
dig +short TXT alanadiniz.com
dig +short TXT default._domainkey.alanadiniz.com
For the same check on Windows:
nslookup -type=TXT alanadiniz.com
Two things to watch: a domain must have only one SPF record; two separate v=spf1 records invalidate SPF. If you send email from a mail service separate from your website, the SPF record must cover both sources. To create the records from scratch, see the how to create SPF, DKIM and DMARC records guide.
How does the hourly sending limit affect order emails?
Shared hosting applies an hourly email sending limit to prevent spam and abuse. Sending via SMTP doesn't remove this limit; SMTP emails also count against the same account's quota. Once the limit is reached, new emails are deferred or rejected, and order confirmations are affected.
The problem usually comes not from order emails but from bulk sending from the same account:
- Newsletters or promotional emails sent through WordPress
- Automated reminders to customers who abandoned their carts
- Notifications triggered by spam bots using your contact form
During a campaign, a newsletter to a few hundred people can use up the hourly limit in minutes and delay order confirmations for the rest of that hour. The fix is to separate newsletters from transactional emails, add CAPTCHA to contact forms and use a plan whose limit fits your order volume. To see whether you've hit the limit, look for deferred or rejected messages within the same hour in the cPanel delivery report.
Still not sending? Quick checklist
- Is the SMTP connection being established? If the SMTP plugin's test email says "authentication failed", the username or password is wrong; make sure the username is the full email address.
- Is the connection timing out? A wrong port and encryption pairing (465 with STARTTLS, 587 with SSL) causes the connection to hang.
- Is another plugin overriding the settings? If more than one SMTP or email plugin is active, keep only one.
- Is the mailbox quota full? A full mailbox may not cause sending problems, but it can't receive customer replies; check the quota status in cPanel.
- Is the DMARC policy too strict? With a
p=rejectpolicy, emails are rejected outright if SPF or DKIM alignment is broken. Until you fix the problem, you can switch the policy to monitoring mode withp=none. - Is the problem limited to one provider? If emails fail to reach only a specific provider, check whether the server IP is on a blocklist.
Keeping a sending log lets you see within seconds whether an email was sent when a customer says "I didn't get the email". Most SMTP plugins offer this log; since it stores customer email addresses, don't keep the records longer than necessary.
Next step: choose your email infrastructure based on your sales volume
Each Sunucu Atlas e-commerce hosting plan clearly states its hourly email limit; for stores with high order volume, the SA-ET-3 plan allows 1,000 emails per hour. If you want to keep your business correspondence completely separate from your website, you can manage your siparis@ and info@ addresses on separate infrastructure with our mail hosting plans, which include Roundcube webmail, IMAP/POP3/SMTP (SSL), SPF and DKIM, and SpamAssassin spam filtering. If you get stuck during setup, you can open a support ticket.
Frequently asked questions
Why do WooCommerce emails go to the spam folder?
Usually because they're sent with unauthenticated PHP mail() from a sender address that doesn't exist. Setting up SMTP through a real mailbox and verifying your SPF/DKIM records largely solves the problem.
Should I use port 465 or 587 for SMTP?
Both are secure. Port 465 uses SSL/TLS from the start, while 587 establishes an encrypted connection with STARTTLS; use the port recommended on your server's Connect Devices screen. Don't use port 25.
The customer gets the order email but I don't get the new order notification. Why?
Check the recipient address for the New order email in the WooCommerce email settings. If the address is correct, see whether the email is caught in the spam folder or by filters in your domain's own mailbox.
If I use SMTP, does the hosting's hourly email limit still apply?
Yes. Emails sent via SMTP through a mailbox on the same hosting account also count toward the hourly limit, so you need to separate bulk newsletter sending from transactional emails.
The payment went through but the customer never got an email. What could be wrong?
If the order status is stuck at Pending payment, the email was never triggered. In that case, check whether the payment gateway's callback notification is reaching your site.