How does one avoid email data theft? By sending secure emails.
This is where OpenCart SMTP authentication instead of default PHP mail function plays a vital role.
However, bad SMTP settings or incorrect password may cause errors like SMTP Error: Could not connect to SMTP host.
Today, we’ll see how our Support Engineers set up OpenCart SMTP settings and fix related errors.
How we set up SMTP in OpenCart
Let’s see how our Support Engineers configure Gmail SMTP in OpenCart.
1. Initially, we log into OpenCart Admin Page and navigate to System > Settings > Edit > Mail.
2. Then, we fill the following field too.
- Mail Engine:
- SMTP Host: ssl://smtp.gmail.com
- Username: email@example.comMTP Password:
- SMTP Port: 465 (465=SSL, 587=TLS, 25=standard)
3. At last, we click the Save button to save settings.
How we fixed errors related to OpenCart SMTP settings
Users often find themselves confused when their SMTP settings are not working correctly in OpenCart.
Let’s see how our Support Engineers solved errors related to SMTP settings in OpenCart.
1. Incorrect Gmail SMTP settings
Recently, one of our customers contacted us with a problem with OpenCart email settings. He was getting an error when completing actions on the store. The SMTP function had clearly failed to work.
Upon checking, Bobcares Support Engineers found the error messages were due to bad SMTP settings in OpenCart. The problem was solved by changing the hostname from “smtp.gmail.com” to “ssl://smtp.gmail.com”.
2. Wrong Password
Similarly, another customer had a problem with sending an email via GMAIL in OpenCart. He was getting an error while sending emails. The error said “SMTP Error: Could not connect to SMTP host“.
Then, our Support Engineers found that the given password was the reason for the error. The customer had enabled 2 step authentication in his account. However, while setting up SMTP in OpenCart, he was using the standard password instead of an encrypted password.
So, we solved the error by giving the right password in the SMTP configuration.
[Having trouble while configuring SMTP settings in OpenCart? We’ll fix it for you.]
In short, incorrect OpenCart SMTP settings such as wrong password, bad Gmail SMTP settings, etc. often cause errors. Today, we saw how our Support Engineers set up SMTP in OpenCart and solve related problems.