Enter the following information in the SMTP account settings of your mail client:
Gmail SMTP Server
Host (Server): smtp.gmail.com
SMTP Secure: SSL
Port: 465
or
SMTP Secure: TLS
Port: 587
Hosting SMTP Server
Host (Server): mail.domain.com
SMTP Auth: Yes. (True)
SMTP Secure: (None)
Port: 25
or
Host (Server): server001.hosting.com (Example)
SMTP Secure: TLS/SSL
Port: 465