Send emails by using the PHP native function – mail() – suffer from many drawbacks in terms of Deliverability. Many anti spam filters end up blocking these emails. To avoid this problem, you must configure an SMTP account in the application to send all mail through it.
To enable the SMTP settings you must follow the next steps:
- Open the file
- Change the value of
- Save the file.
The SMTP server authentication data can be the one that comes with your hosting plan or by using an external service, such as Hotmail, Yahoo, Gmail or other.
As an example, consider how to configure the SMTP server with a Google Apps account or Gmail.
To configure your SMTP server:
- In the navigation bar, click on your username and then click Settings
- In the lower left block, click Mail Server
- Please fill the fields with the following data:
- Host: smtp.gmail.com - Port: 587 - Encryption: TLS - Username: Your username on Google Apps or Gmail - Password: Your password on Google Apps or Gmail
- Click Update
Note: You can read more information in our Email Setup documentation.