AUTHENTICATE
, POP AUTH
, and SMTP AUTH
commands, to authenticate users. The SASL XOAUTH2 mechanism enables clients to provide OAuth 2.0 credentials for authentication. The SASL XOAUTH2 protocol documentation describes the SASL XOAUTH2 mechanism in great detail, and libraries and samples which have implemented the protocol are available.imap.gmail.com:993
and the POP server at pop.gmail.com:995
require SSL. The outgoing SMTP server, smtp.gmail.com
, requires TLS. Use port 465
, or port 587
if your client begins with plain text before issuing the STARTTLS command.