fix: enable SMTP debug logging in development mode#11144
fix: enable SMTP debug logging in development mode#11144AdeshGhadage wants to merge 1 commit intoappwrite:mainfrom
Conversation
📝 WalkthroughWalkthroughThis change adds conditional SMTP debugging to two files when the application runs in development mode. When Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
What does this PR do?
This PR improves SMTP error visibility in the Mails worker during development by conditionally enabling PHPMailer’s SMTP debug output when _APP_ENV=development
Test Plan
Set _APP_ENV=development
Intentionally misconfigured SMTP (invalid port) to force a connection failure
Triggered a password recovery email
Verified detailed PHPMailer SMTP debug output appears in appwrite-worker-mails logs
Restored correct SMTP configuration and confirmed successful email delivery
Verified no SMTP debug output when _APP_ENV=production
Related PRs and Issues
Fixes #1390
Checklist