Skip to content

Release version 2.0.0 with mail changes (smtp)#144

Merged
abhishekr700 merged 9 commits intomainfrom
v1.2
Mar 2, 2026
Merged

Release version 2.0.0 with mail changes (smtp)#144
abhishekr700 merged 9 commits intomainfrom
v1.2

Conversation

@abhishekr700
Copy link
Collaborator

Merging code for v2.0.0 release with mail-related changes that were in public preview for a while.

  • [ x ] Tests pass
  • [ x ] Appropriate changes to README are included in PR

abhishekr700 and others added 8 commits August 11, 2025 13:55
This commit adds the remaining error handling tests for the SMTP mail sending functionality.

- Adds a test to ensure `MissingRecipientsError` is raised when no recipients are provided for an admin email.
- Adds a test to ensure `InvalidSenderError` is raised for SMTP authentication errors.
- Adds a test to ensure a generic `Error` is raised for SMTP connection errors and missing `SMTP_HOST` configuration.
- Corrects the exception type raised in the `send()` method to use the base `Error` class for transient SMTP errors.
This change prefixes all environment variables related to the external SMTP mail service with `APPENGINE_` to improve namespacing and prevent potential conflicts in the deployment environment.

The following variables have been renamed:
- USE_SMTP_MAIL_SERVICE -> APPENGINE_USE_SMTP_MAIL_SERVICE
- SMTP_HOST -> APPENGINE_SMTP_HOST
- SMTP_PORT -> APPENGINE_SMTP_PORT
- SMTP_USER -> APPENGINE_SMTP_USER
- SMTP_PASSWORD -> APPENGINE_SMTP_PASSWORD
- SMTP_USE_TLS -> APPENGINE_SMTP_USE_TLS
- ADMIN_EMAIL_RECIPIENTS -> APPENGINE_ADMIN_EMAIL_RECIPIENTS

The changes have been applied to both the SDK implementation in `mail.py` and the corresponding unit tests in `mail_unittest.py
@Hrithik98
Copy link
Collaborator

Do we need the .coverage file? I don't see it in the master branch.

@abhishekr700
Copy link
Collaborator Author

@Hrithik98 removed from the tree and added to .gitignore to avoid this for the whole repo.

@abhishekr700 abhishekr700 merged commit 413688f into main Mar 2, 2026
10 checks passed
@abhishekr700 abhishekr700 deleted the v1.2 branch March 2, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants