Improved error handling of IMAP OAuth 2.0
Implemented SMTP OAuth 2.0