Connect your alternative email client with Gmail user accounts, using industry standard IMAP and SMTP protocols.
Gmail IMAP
Overview of protocol, port setup, authentication, and sample code & libraries.
Use of Gmail IMAP is subject to the Google API Services: User Data Policy and Google APIs Terms of Service.