TechBuzzPro

How to Configure Email Settings in OpenCart

· 4 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To configure email in OpenCart, log in to your admin panel, go to System > Settings, edit your store, open the Mail tab, and choose either Mail (PHP mail) or SMTP. For SMTP, enter your host, port, username, password, and encryption, then save. This controls order confirmations, password resets, and customer notifications. Menu labels can differ slightly by OpenCart version, so look for the closest match.

What You'll Need

  • Admin access to your OpenCart dashboard.
  • Your email account details: SMTP host, port, username, password, and encryption type (SSL/TLS). Your hosting provider or email service supplies these.
  • The email address you want messages to come from (it should match your domain to avoid spam filters).

Step-by-Step

  1. Log in to OpenCart admin. The URL is usually yourstore.com/admin.
  2. In the left menu, go to System > Settings. You will see your store listed; click Edit next to it.
  3. Open the Mail tab.
  4. Set Mail Engine to Mail for basic PHP mail, or SMTP for a dedicated mail server. SMTP is more reliable for deliverability.
  5. If you chose Mail, enter the Mail Parameters only if your host requires them (often left blank). Set E-Mail to the address you want as the sender.
  6. If you chose SMTP, fill in:
    • SMTP Host – e.g., smtp.yourdomain.com or your provider's server.
    • SMTP Username – usually your full email address.
    • SMTP Password – the password for that mailbox.
    • SMTP Port – 587 for TLS, 465 for SSL, or 25 if your host specifies.
    • SMTP Timeout – leave at 5 unless told otherwise.
    • SMTP Encryption – choose TLS or SSL to match the port.
  7. Click Save in the top right.
  8. Test it: place a test order or use a password reset on a customer account. Check that the email arrives.

Common Mistakes

  • Using a sender address that does not match your domain, which increases spam filtering.
  • Mismatching port and encryption (e.g., port 465 with TLS instead of SSL).
  • Leaving the SMTP password blank or using your main account password when the mail provider requires an app-specific password.
  • Forgetting to save changes after editing the Mail tab.
  • Assuming PHP mail works everywhere; many hosts disable it or rate-limit it.

Tips

  • Prefer SMTP over PHP mail for better delivery and fewer spam issues.
  • Use a dedicated email address like orders@yourdomain.com rather than a personal one.
  • Keep the SMTP timeout at 5 seconds; increasing it rarely helps and can slow the checkout.
  • After changing settings, clear OpenCart's cache if emails still behave oddly (Dashboard > gear icon > refresh).

Troubleshooting

If emails do not arrive, work through these in order:

  1. Check your spam/junk folder and the customer's spam folder.
  2. Re-check the SMTP host, port, username, password, and encryption. A single typo breaks sending.
  3. Try port 587 with TLS, then 465 with SSL, to see which your host supports.
  4. Confirm your hosting provider allows outbound SMTP connections. Some block port 25 or require a specific server.
  5. Look at System > Maintenance > Error Logs for mail-related errors.
  6. If using PHP mail, ask your host whether it is enabled and whether a sendmail path is required.
  7. As a last resort, switch to SMTP with a reputable email service and re-test.

If that did not work, contact your hosting or email provider with the exact error from the log; they can confirm server-side blocks.

Frequently Asked Questions

Do I need SMTP or is PHP mail enough?

PHP mail can work on some hosts, but SMTP is more reliable and less likely to be marked as spam. Use SMTP if your host provides credentials.

What port and encryption should I use?

Use 587 with TLS or 465 with SSL. Your email provider's help page will confirm which they support.

Why do password reset emails not arrive?

Usually a mail configuration issue or the email landing in spam. Test with a different recipient and check the error log.

Can I use a free email account for SMTP?

Some free providers allow SMTP with an app password, but many restrict it. A domain-based mailbox is safer for a store.

Where do I change the store's contact email?

That is on the Store tab under System > Settings, separate from the Mail tab.

Do I need to clear cache after changing mail settings?

Not always, but if changes do not seem to apply, refresh the cache from the dashboard.