feat: add internal SMTP failover support#11761
Draft
TorstenDittmann wants to merge 2 commits into1.9.xfrom
Draft
feat: add internal SMTP failover support#11761TorstenDittmann wants to merge 2 commits into1.9.xfrom
TorstenDittmann wants to merge 2 commits into1.9.xfrom
Conversation
Use utopia-php/messaging's multi-adapter failover support for Appwrite's internal SMTP client so deployments can define a fallback SMTP transport without changing project-level SMTP behavior. Add secondary SMTP environment variables, centralize internal SMTP setup under Appwrite\SMTP, and update internal SMTP availability checks so failover configuration stays consistent across the mail worker, doctor task, account flows, MFA, and team invitations while ignoring secondary settings unless a primary host is configured.
Contributor
Greptile SummaryThis PR introduces internal SMTP failover by wrapping Appwrite's env-configured SMTP client in
Confidence Score: 5/5
Important Files Changed
Reviews (2): Last reviewed commit: "style: address SMTP review feedback" | Re-trigger Greptile |
✨ Benchmark results
⚡ Benchmark Comparison
|
Contributor
Author
|
@greptileai take another look |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
utopia-php/messagingmulti-adapter failover and introducing a secondary SMTP env configurationAppwrite\SMTP, update the mail worker and doctor task to use the shared client, and keep project-level custom SMTP using direct adapter constructionValidation
./vendor/bin/pint --test --config pint.jsonon the touched PHP filesphp -lon the touched PHP files