According to Google, the settings for sending mail through Gmail are:
|Outgoing Mail (SMTP) Server - requires TLS or SSL:||smtp.gmail.com (use authentication)
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465
This is the way we recommend as it uses current Internet standards.
This is not the way we recommend, but it will work if you need it