News and articles
Best-selling templates and extensions in April 2025

Best-selling templates and extensions in April 2025: sitemap, product filter, landing page builder

 
 
 
 
 
Selection of new modules for OpenCart – April 2025

New arrivals for April 2025: same manufacturer products, Yandex Split, info block on the product page

 
 
 
 
 
Paid and free generation of SEO URLs in OpenCart

A brief description of how to correctly create OpenCart SEO URLs for free or paid.

 
 
 
 
 
liveopencart.ru - official partner of opencart.com

We have received the status of an official Gold Partner of Opencart.com

 
 
 
 
 
Changes to the Virtual Consultant interaction schemes

Changes to the Virtual Consultant interaction schemes from EasyTokens

 
 
 
 
 

Mail setup in OpenCart

 
Mail setup in OpenCart

In this article, we will look at how to set up mail in OpenCart to ensure stable email delivery to customers and the administration.

Sending emails is an important element of an online store's functionality. This includes order notifications, password recovery messages, status change alerts, and other emails. Without proper mail configuration, your store may face email delivery issues, leading to missed orders and harming the store's overall reputation. In this article, we will look at how to set up mail in OpenCart to ensure stable email delivery to customers and the administration.

There are two main ways to send emails in OpenCart:

  • Mail (PHP mail) — the standard way of sending messages using PHP’s built-in capabilities.
  • SMTP — a more reliable and secure method that uses external SMTP servers.

Setting up mail via Mail

  1. Go to the OpenCart admin panel.
  2. Open the System > Settings section.
  3. Select the desired store and click Edit.
  4. Go to the Mail tab.
  5. Make sure the Mail Protocol field is set to Mail.
  6. Save the changes.

This method works quickly but may have limitations imposed by the hosting provider, and such emails often end up in spam.

Setting up mail via SMTP

SMTP is the preferred method as it ensures better email deliverability and security.

Steps to set up SMTP:

  1. Go to the OpenCart admin panel.
  2. Open the System > Settings section.
  3. Select the desired store and click Edit.
  4. Go to the Mail tab.
  5. Ensure the Mail Protocol field is set to SMTP
    • SMTP Host: specify the SMTP server (e.g., ssl://smtp.gmail.com for Google, ssl://smtp.yandex.ru for Yandex, ssl://smtp.mail.ru for Mail.ru).
    • SMTP Username: enter the full email address (e.g., yourmail@yandex.ru).
    • SMTP Password: enter the email account password (see notes below about password specifics).
    • SMTP Port: use 465.
    • SMTP Timeout: use 5 or 10.
  6. Save the changes.

Features of connecting mail on Yandex

For Yandex, you need to use an application-specific password instead of your regular email password. This can be done at App Passwords. Yandex will generate the password, and you will only need to provide a custom name, such as "mail for the store."

You also need to enable the following setting in Yandex: Mail > All settings > Mail programs, check the box next to App passwords and OAuth tokens.

Features of connecting mail on Mail.ru

For Mail.ru, you also need to generate a special password for external applications. To do this, go to Security > Passwords for external applications. Mail.ru will generate the password, and you will only need to provide a custom name, such as "Mail for the site."


Рекомендуем посмотреть
Рекомендуем прочитать
 
 


Yet, no one has left a comment to the entry.