Best-selling templates and extensions in April 2025: sitemap, product filter, landing page builder
→New arrivals for April 2025: same manufacturer products, Yandex Split, info block on the product page
→We have received the status of an official Gold Partner of Opencart.com
→Changes to the Virtual Consultant interaction schemes from EasyTokens
→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:
Setting up mail via Mail
Mail
.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:
SMTP
ssl://smtp.gmail.com
for Google, ssl://smtp.yandex.ru
for Yandex, ssl://smtp.mail.ru
for Mail.ru).yourmail@yandex.ru
).465
.5
or 10
.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."