One important feature of OpenCart is that it can connect to an SMTP server to send notification emails at various events happening within opencart. It can send emails for events like addition of reward points to a users account. Here we will see how to utilize gmail SMTP server for sending emails from store.
If you do not have email server configured explicitly Opencart try to search email server from localhost and it does not find email service running on that same machine it shows error as shown below.
Now to setup email server these are the steps you need to follow.
Login to OpenCart Admin Panel.
Go to System>settings and click on “Edit Settings” link to edit details related to store.
Navigate to “Mail” tab from all settings and add all email parameters as shown below. Once all settings are added save settings using save button.
You also need to make sure email user details which you have given is valid. Now you will not longer see any error whenever you add reward points as OpenCart will not try to search email server on local machine it utilize gmail server for sending email.
After adding reward points it will send email to user to whom it is given. In my case email address of that user was not valid so it failed to find that user and I got related notice in gmail account.
This is important feature as it is very much required to keep users and store admin updated related events happening in store.