OAuth2 Client for email notifications

First, please edit your post and fix the formatting of the exception traceback:

Please see Wiki - how to post code on this forum.

Second, buried in that traceback is a connection timeout error. You have a network problem, not yet an auth problem. Find out why the target is dropping/ignoring the request.