Here we will cover how to configure SMTP settings for email in OpenCart 3.x. This is necessary to be able to send emails to confirm accounts and purchases.
OpenCart email settings must be configured within the OpenCart dashboard and have the proper email settings added.
If email settings in OpenCart are misconfigured with the incorrect server information, or if they're using PHP's send_mail function, a variety of errors can occur.
If the email configuration is set to use SMTP but isn't configured properly, no messages will be sent.
If the email configuration is set to use PHP send_mail, the messages will try to send out via the default email address username@hostname.com which will usually be blocked by our spam filters or the recipient's spam filters.
Related Articles
Update SPF Record
Outbound Emails Labeled as Spam by Recipient
Add DMARC Record in cPanel
Configuring SMTP settings within OpenCart
- Log into OpenCart with the administrator account
- Expand the System dropdown in the left side panel
- Click Settings
- Click the Edit button (the icon looks like a pencil)
- Click on the Mail tab
- Enter the SMTP settings
- Set the Mail Engine to SMTP
- Leave Mail Parameters empty
- For the SMTP Hostname, enter the recommended secure SMTP server
TIP: This can be found under Configure Devices under Email Accounts for the respective account in cPanel.
EXAMPLE:secure12.webhostinghub.com
- The SMTP Username is the email address the store should send emails from
- The SMTP Password is the email account's password
- The SMTP Port should be 465
- The SMTP Timeout should be set to 5
- Click the Save button on the top-right of the page
This article covers OpenCart versions 3.x
If an updated version is available and not documented here, drop us a comment so we can work to get it updated for you as soon as possible!