How to setup SMTP for email via GMAIL
Google's GMAIL is vastly used email exchanges. If we want to configure gmail as sending emails via SMTP, Please use the following settings.
SMTP Server/Host: smtp.gmail.com
SMTP Port: 587
SMTP User Name: yourgmailemail
SMTP Password: Yourgmailpassword or appspecificpassword
Refer to this article for more information about creating app specific password.