Guide to follow for
Configure an outgoing mail server
Configuring GMail SMTP Server
Server hostname → smtp.gmail.com - this is configured by Gmail
Server port → 465 - here you are using port for SSL
Username → username used for Gmail account that you are using as an mail server
Password → password used for Gmail account that you are using as an mail server