Email Set Up in Drupal 8 - SMTP module installation & Configuration steps:
Sending email is one the most basic and essential requirement for each website. In drupal also we require to send emails on occurrence of different events e.g. on registration of a new user, on a creation of new content, to accept feedbacks from users etc.
Generally drupal uses sendmail() function of PHP to send emails which totally depends on the email configuration of hosting server.
SMTP Module Installation
For sending emails an email server is required, it can be configured in hosting server or third party server. In this section, we define how we can configure SMTP module to send emails using Gmail accounts or any other SMTP server in drupal 8.
Installation steps of SMTP module:
1.Download the module file from given link: https://www.drupal.org/project/smtp
2. Extract the zip and copy SMTP folder inside root_folder/modules/contrib.
3. Click on Extend from the admin menu.
4. Select SMTP Authentication Support and click the install button.
SMTP module Configuration steps:
1.Click on Configuration tab on admin menu.
2.Under System section, click on SMTP Authentication Support
3.Click on under Install options
4.Under SMTP server settings section, Insert value for SMTP Server field.
5.Insert SMTP Port and use encrypted protocol value (if using Gmail)
6.Under SMTP Authentication section, insert Username and Password values.
7.Click on Save configuration