Few things are more frustrating for an online store owner than realizing your OpenCart shop isn't sending emails. Order confirmations vanish, customers never receive their receipts, and password reset messages simply don't arrive. If this sounds familiar, you're not alone — email delivery is one of the most common issues OpenCart users search for help with.

The good news? In almost every case, the fix is switching from the default PHP mail method to a proper SMTP configuration. In this guide, we'll walk through exactly how to do that using your OpenCart admin panel — no coding required.

Why OpenCart Emails Fail to Send

By default, OpenCart uses PHP's built-in mail() function to send emails. While this works on some setups, it's unreliable for a few reasons:

  • Poor deliverability: Emails sent via mail() often land in spam or get rejected by providers like Gmail and Outlook.
  • Missing authentication: Modern mail servers expect authenticated sending (SPF, DKIM, proper login). The default method skips this.
  • Server restrictions: Many hosts limit or disable direct PHP mailing to prevent abuse.

SMTP solves all of this by sending your emails through a real, authenticated mailbox — just like your regular email client does.

Pro Tip: Always send emails from an address that matches your store's domain (for example sales@yourstore.com). Sending from a Gmail or Yahoo address through your own domain will almost always trigger spam filters.

Step 1: Create an Email Account in cPanel

Before configuring OpenCart, you need a real mailbox to send through. If you're hosted with Hostiso, this takes less than a minute:

  1. Log in to cPanel.
  2. Under the Email section, click Email Accounts.
  3. Click Create, then enter an address such as store@yourdomain.com.
  4. Set a strong password and click Create.

Keep this email address and password handy — you'll need them in the next step.

Finding Your SMTP Settings

In cPanel, open Email Accounts, click Connect Devices next to your new address, and note the Secure SSL/TLS Settings. You'll typically see:

  • Outgoing Server (SMTP): mail.yourdomain.com
  • SMTP Port: 465 (SSL) or 587 (TLS)

Step 2: Configure SMTP in the OpenCart Admin

Now let's plug these details into OpenCart:

  1. Log in to your OpenCart Admin Dashboard.
  2. Go to System → Settings.
  3. Find your store in the list and click the blue Edit (pencil) button.
  4. Click the Mail tab at the top.

Fill in the fields as follows:

FieldValue
Mail EngineSMTP
SMTP Hostnamessl://mail.yourdomain.com
SMTP UsernameYour full email (e.g. store@yourdomain.com)
SMTP PasswordYour mailbox password
SMTP Port465
SMTP Timeout5

A few important notes:

  • For port 465, use the prefix ssl:// before the hostname.
  • For port 587, use tls:// instead.
  • Make sure the Mail From field (under the same tab or in Store settings) uses your domain email address.

When you're done, click the Save button (the blue disk icon) in the top-right corner.

Step 3: Send a Test Email

The easiest way to test is to place a test order or trigger a password reset. Alternatively, in OpenCart you can use the Mail → Alert settings to send yourself a notification. Check both your inbox and spam folder.

If the email arrives — congratulations, you're done! If not, don't worry. Let's troubleshoot.

Common Errors and How to Fix Them

1. "Error: SMTP connection failed"

This usually means the hostname, port, or prefix is wrong. Double-check that:

  • Port 465 uses ssl:// and port 587 uses tls://.
  • The hostname matches exactly what cPanel shows (often mail.yourdomain.com).

2. Emails send but land in spam

Deliverability depends on your domain's DNS records. Make sure you have valid SPF and DKIM records. On Hostiso servers, these are usually configured automatically — but you can verify them in cPanel under Email Deliverability. Click Repair next to any item showing a warning.

3. "Authentication failed" errors

This means the username or password is incorrect. Remember:

  • The SMTP username must be the full email address, not just the part before the @.
  • If you recently changed the mailbox password, update it in OpenCart too.
Warning: Avoid special characters like & or spaces in your mailbox password if you keep hitting authentication problems — some setups struggle to pass them cleanly.

Prefer a Third-Party SMTP Service?

For high-volume stores, some owners prefer a dedicated transactional email provider. In that case, simply use the SMTP credentials provided by that service (host, port, username, and password) in the same OpenCart Mail tab. The process is identical — only the values change.

That said, for most small and medium stores, your Hostiso mailbox handles email reliably out of the box, especially with our optimized mail servers and automatically configured authentication records.

Why This Runs Smoothly on Hostiso

OpenCart email issues are often rooted in server limitations, but our hosting is built to make this painless:

  • Pre-configured deliverability: SPF and DKIM records are set up for you, keeping your emails out of spam.
  • Fast NVMe storage: Your store loads quickly, so order emails fire off without delay.
  • 1-click OpenCart installer: Get a fresh, correctly configured store running in minutes.
  • 24/7 expert support: If SMTP still won't cooperate, our team can check your mail logs and settings for you.

Ready to build a faster, more reliable store? Explore our Shared Hosting plans, or step up to a Cloud VPS for growing stores that need more resources.

Frequently Asked Questions

Should I use port 465 or 587?

Both work well. Use 465 with the ssl:// prefix for a fully encrypted connection, or 587 with tls://. If one is blocked or fails, try the other.

Why do my emails work in testing but not for real orders?

Check that email notifications are actually enabled under System → Settings → Mail → Mail Alerts. If order alerts are turned off, OpenCart won't send them even with correct SMTP settings.

Can I send emails from a Gmail address on my store?

It's not recommended. Sending from a free provider address through your own domain almost always triggers spam filters. Always use an email account on your store's domain, such as orders@yourstore.com.

With SMTP configured correctly, your OpenCart store will deliver order confirmations, invoices, and customer notifications reliably — keeping your shoppers informed and your business running smoothly.