With the following information, you can set up IMAP-server in most email clients.

Incoming mail (IMAP) server - requires SSL-protection: imap.gmail.com
SSL in use: Yes
Port: 993
Outgoing mail (SMTP) server - TLS-requirement: smtp.gmail.com (use authentication)
Authentication in use: Yes
STARTTLS in use: Yes (In some programs this is named as SSL)
Port: 465 or 587
Name of the account: your email
Email address:

your email

Password: Your Gmail-password

You should notice, if the email client doesn't support SMTP-server authentication, you can't send email using your Gmail-account on chosen software.

Also, if you have issues with sending email, but you have confirmed that the encryption is activated for SMTP-protocol in the client, try to define SMTP-server through different port: 465 or 587.