Gmail API examples uses legacy email python API
lecovi opened this issue · comments
Summary
All gmail examples are using the legacy email python API.
In official Python Docs: https://docs.python.org/3/library/email.mime.html says that the from email.mime.text import MIMEText
is the legacy API. New API should use from email.message import EmailMessage
detailed in https://docs.python.org/3/library/email.message.html