Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Related issue (if applicable): #365
GMail OAuth support to be added in this PR
Starting January 2025, Google plans to discontinue the use of app passwords, which have traditionally allowed less secure apps to access Gmail accounts. This change enhances account security but affects methods like using Python's smtplib with app passwords to send emails. To continue sending emails via Gmail using Python, you'll need to adopt more secure authentication methods, such as OAuth 2.0.
Account Setup
Set Up a Google Cloud Project
Gmail API
and chose the Enable button after you access it.https://www.googleapis.com/auth/gmail.send
(Sensitive Scope) to your project.Notes:
When the app is in testing mode (not published), you must explicitly add the email address of your test user.
Test users only need to be added in testing mode.
If the app is published, test users are no longer required.
New Service Completion Status
%global common_description
Checklist
flake8
)Testing
Anyone can help test this source code as follows: