Reposting here because it's always such a hassle to find it online.
Let's face it, Google would prefer you only check your email via web browser. They make their money from advertisements, not from giving you a free email account.
SMTP -- smtp.gmail.com
- Requires TLS
- Port: 465 or 587
- Requieres Authentication
- Use same credentials as incoming mail server
IMAP -- imap.gmail.com
- Requires SSL
- Port: 993
- Username: <username@yourdomain.com>
- Password: duh