Is your feature request related to a problem? Please describe.
From May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. Therefore, this code won't work for Gmail accounts. If you want to interact with your Gmail account in Python, I highly encourage you to use the Gmail API instead.
Describe the solution you'd like
Add integration for Gmail API
Send the log files to an email address using the Gmail API
Is your feature request related to a problem? Please describe. From May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. Therefore, this code won't work for Gmail accounts. If you want to interact with your Gmail account in Python, I highly encourage you to use the Gmail API instead.
Describe the solution you'd like