NopCommerce Sending Emails Failed: SMTP Configuration and Fix Guide

Store setup & growth 9 Updated

nopCommerce Sending Emails Failed: SMTP Configuration and Fix Guide

How to find and fix nopCommerce email failures in order: the SSL box and port, sign-in, a port test from the server, the queue and templates, and inbox delivery.

The SMTP connection code in nopCommerce 5.00.1, where the SSL checkbox picks between SSL on connect and STARTTLS, under the words SSL or STARTTLS

Key takeaways

  • In nopCommerce 5.0 the SSL box picks the TLS mode: ticked means SSL from the first byte (port 465), clear means STARTTLS when offered (port 587). A mismatch is the most common failure.
  • There are five sign-in methods: none, NTLM, login, Google OAuth2 and Microsoft OAuth2. Use the one your provider allows.
  • Store emails go through a queue. The send task tries each one 3 times, then stops.
  • An accepted message is not a delivered one. SPF, DKIM and DMARC decide the inbox.

An order completes, but the customer never gets the confirmation. Password resets sit unsent, or the test email in the admin fails with a connection or login error. The failure can sit before SMTP, inside the SMTP session, in the queue, or after the provider has accepted the message.

This guide tests each of those in order, and changes one setting at a time. We checked the settings and behaviour against the nopCommerce 5.00.1 source and documentation on 25 November 2026.

Classify Where Email Delivery Stops

The Add a new email account form from the official nopCommerce documentation, with host, port, SSL and authentication method, beside the three places email delivery stops

Start in Configuration → Email accounts, open the account the store uses and click Send test email. Write down the exact error and the time before you change anything.

SymptomLayerLook at
Timeout, refused, handshake errorCannot connectPort, SSL box, firewall, DNS
535, authentication failedCannot authenticateSign-in method, app password, OAuth2 settings
Test works, store emails do notAccepted but missingMessage queue, schedule task, templates
Sent, but never in the inboxDeliverySpam folder, bounces, SPF, DKIM, DMARC

The test button is the first dividing line. If it fails, stay with the account and the network. If it passes but order emails do not arrive, go to the queue and the templates.

Store emails still not arriving? BSS sets up and fixes nopCommerce email, from SMTP to domain authentication.

View nopCommerce services

Verify the Email Account, Port and TLS Mode

The nopCommerce 5.00.1 SMTP code that connects with SSL on connect when the SSL box is ticked and STARTTLS when it is not, beside the port each mode expects

The documentation lists the fields: email address, display name, host, port, the SSL checkbox, the maximum number of emails and the authentication method. Some providers only send from the address you sign in with, or from a verified alias of it.

The SSL checkbox matters most. In the 5.00.1 SmtpBuilder, a ticked box connects with SslOnConnect, so TLS starts with the first byte, as on port 465. A clear box uses StartTlsWhenAvailable, which upgrades to TLS if the server offers it, as on port 587.

await client.ConnectAsync(
    emailAccount.Host,
    emailAccount.Port,
    emailAccount.EnableSsl ? SecureSocketOptions.SslOnConnect : SecureSocketOptions.StartTlsWhenAvailable);
Provider saysPortSSL box
SSL / implicit TLS465Ticked
STARTTLS587Clear
From the BSS team

When a store sends nothing after a mail provider change, the first thing we check is port 587 with SSL ticked. That pairing tries TLS before the server is ready for it, and the handshake fails before any login happens.

Fix Authentication, App Passwords or OAuth2

The EmailAuthenticationMethod enumeration in the nopCommerce 5.00.1 source with its five values: none, NTLM, login and two OAuth2 options

nopCommerce 5.0 has five sign-in methods: no authentication, NTLM (the default network credentials), login and password, Google OAuth2 and Microsoft OAuth2. Pick the one your provider allows for SMTP, not the one your mail client uses.

Authentication checks

  • Use the username format the provider asks for, usually the full mailbox address.
  • Confirm SMTP sending is enabled for the mailbox; many providers turn it off by default.
  • Use an app password only where the provider requires one.
  • For Google OAuth2, check the client ID and secret; for Microsoft OAuth2, also the tenant identifier.
  • Make sure the From address is the mailbox itself or an allowed alias.

Test SMTP Connectivity From the nopCommerce Host

A PowerShell window running Test-NetConnection against an SMTP server on port 587 with TcpTestSucceeded True

A laptop that reaches the mail server proves nothing about the production server. Run the test on the machine, VM or container that runs nopCommerce.

Resolve-DnsName smtp.example.com
Test-NetConnection smtp.example.com -Port 587

TcpTestSucceeded : True proves the port is open, not that TLS, the login or delivery will work. A timeout points to a firewall, a cloud network rule or a host that blocks the port. Many cloud hosts block outbound port 25, so use an authenticated submission port instead. Our nopCommerce hosting guide covers the server side.

Check the Message Queue, Scheduled Task and Templates

The nopCommerce message queue search from the official documentation, the queue task code that gives each email three tries, and the Send immediately option on message templates

nopCommerce's documentation is plain about it: emails are not sent immediately, they are queued. Open System → Message queue, tick Load not sent emails only and look at the send attempts, addresses and dates.

The send task in 5.00.1 tries each queued email 3 times, then leaves it. If the test email works but the queue grows, open System → Schedule tasks, check the email task's last run and error, and use Run now. The documentation says to restart the application after changing a task.

Then check the template in Content management → Message templates: it must be active, assigned to the right store, using the right email account, and either set to Send immediately or given a delay. Use Test template with real values.

From the BSS team

Requeue failed emails only after you fix the cause. Retrying against a wrong password three times per message can get the account throttled, and then the real error is hidden behind the new one.

Separate SMTP Success From Inbox Delivery

A PowerShell lookup of a domain's SPF and DMARC records, beside the nopCommerce 5.00.1 code comment that server certificate verification is disabled by default

Once the provider accepts the message with a 250 reply, nopCommerce has done its part. A missing email is now a provider or recipient problem: check the provider's activity log, bounces, suppression list, spam folder and rate limits.

Authenticate the sending domain with SPF and DKIM, then publish a DMARC policy. A quick Resolve-DnsName -Type TXT on your domain shows whether the SPF record is there.

One more detail from the 5.00.1 source: its SMTP code accepts any server certificate, because certificate checking is turned off by default. A certificate error will not stop sending, but it also means nopCommerce does not prove it reached the right server, so use the provider's exact host name. For errors, read System → Log at the failure time, and remove passwords and secrets before you share a log.

Before you call it fixed

  • The test email works from the production server.
  • The email task runs and the queue empties.
  • Order, account, password-reset and contact emails use the right template and sender.
  • Messages arrive at two or more mail providers without bouncing or landing in spam.

Frequently Asked Questions

Why is nopCommerce not sending emails?
Usually the SSL box does not match the port, the sign-in method is wrong for the provider, or the emails are stuck in the queue. Send a test email from Configuration → Email accounts first to see which layer fails.
Should SSL be ticked for port 587 in nopCommerce?
No. In nopCommerce 5.0 a ticked SSL box means SSL from the first byte, which suits port 465. For port 587 leave it clear, and nopCommerce uses STARTTLS when the server offers it.
Does nopCommerce support OAuth2 for email?
Yes. Email accounts can sign in with Google OAuth2 (client ID and secret) or Microsoft OAuth2 (tenant, client ID and secret), as well as login and password, NTLM or no authentication.
Why does the test email work but order emails do not?
Order emails are queued. Check System → Message queue for unsent emails and System → Schedule tasks for the email task, then make sure the message template is active and uses the right email account.
How many times does nopCommerce retry a failed email?
In nopCommerce 5.00.1 the queued email task tries each message 3 times. After that it stays in the queue unsent until you fix the cause and requeue it.

Final Thoughts

Most nopCommerce email failures come down to a handful of settings: the SSL box against the port, the sign-in method, the queue task and the domain's authentication records. Test them in that order, one change at a time, and keep the exact error message.

If HTTPS on the store itself still needs work, our nopCommerce SSL setup guide covers IIS and Azure.

SM

Written by Sharif Md. Yousuf

Software Engineer · Bangladesh Software Solution

Software Engineer at BSS in Dhaka, working on engineering projects including the tooling behind these blogs.

Read nextStore setup & growth nopCommerce Hosting Guide 17 min read