Email setting

1. Config Email
(*)Configure sending mail in .env file
2. Use mail queue
1. Config Email

System Admin -> Email Setting -> config Email

Email config

Note: Default, the function to send email with forgotten passwords is always activated when the sending mail function is on.


+ Server SMTP: is the IP or domain of the provider. For example
+ Account SMTP:  is the user smtp. For example with gmail:
+ Password SMTP: Your password is provided
+ Security SMTP: Usually a vendor-specific TLS / SSL
+ Port SMTP: is the port to send mail, usually 25, 465, 587

(*)Configure sending mail in .env file
Since S-Cart version 4.4, we support configuring mail delivery in .env files.
This means that in addition to SMTP, you can use many different methods of sending mail that Laravel supports. More detail​​​​​​ Laravel
To do this, first you need to disable the SMTP functionality in the admin.

Email config

- If you do not use SMTP in admin, the configuration  in the .env file will be used.
- If you use the Multi-store Pro plugin, suppliers websites are required to use SMTP which is configured in the admin.
Only root domain can use this feature.

2. Use email queue

By default, the sending of the mail will be made immediately after each move. However, if your application has a lot of accesses, the slow mail delivery process will affect the user experience on the website because you have to wait for the response results.
- To overcome the above problem, you can enable sure to send mail through queue.
Email config

- Sending mail will be moved to the job table instead of being sent directly. This way, your application will not have to wait for a response from sending mail
A crontab will automatically send emails in the job table, and delete them when completed. The work will not affect the customer experience on the website application.

Email config

- Note: You must install crontab for your application.
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Reference: HERE

Related topics

Latest Document