How to send email from Opencart?

Please follow these steps to set up the email service for your Opencart website.

-Please log in to your Opencart website admin page to set up the SMTP settings.

 

Login to your site backend-->system-->settings-->mail
    Mail Protocol: We only support SMTP protocol, so please choose SMTP.
    Mail Parameters: Just ignore this, because this is only used for Mail protocol.  
    SMTP Host: The address of the SMTP host.
    SMTP Username: The full email address.
    SMTP Password
Your email account password
    SMTP Port: 25
    SMTP Timeout: use the default parameter.
    New Order Alter Mail: Select 'Yes' will send a notification email for every order submitted in the storefront.
    New Account Alert Mail: Select 'Yes' will send a notification email for every account created in the storefront.
    Additional Alert E-mails: List any additional e-mails that should also receive the notification emails above.

 

- Please log in to your site backend-->system-->General to set the correct store owner's email address.

- Locate to file \system\library\mail.php, line 274 and line 276 from the file manager or FTP,

replace

$this->from

with

$this->username

 

Please note : If you are using Opencart (v2.1.0.1) that installed from APP Installer, you may need to replace lines 312 and 314 with below:

if ($this->verp) {
    fputs($handle, 'MAIL FROM: <' . $this->smtp_username . '>XVERP' . "\r\n");
} else {
    fputs($handle, 'MAIL FROM: <' . $this->smtp_username . '>' . "\r\n");
}
 

If you are using Opencart with a higher version, just make sure you select "SMTP" Mail Protocol.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution