Skip to content

fix: forgot-password mailer errors and SMTP timeouts - #17

Merged
habiibullahm merged 1 commit into
mainfrom
bugfix/forgot-password-mailer-timeouts
Aug 5, 2026
Merged

habiibullahm merged 1 commit into
mainfrom
bugfix/forgot-password-mailer-timeouts

Conversation

@habiibullahm

Copy link
Copy Markdown
Owner

Summary

  • Return 503 when the mailer is not configured (production) or SMTP/Resend send fails, instead of a silent success
  • Add 10s SMTP connectionTimeout / greetingTimeout / socketTimeout so Render does not hang ~2 minutes on Gmail
  • Expose mailerConfigured on /health, warn at boot in production, and clarify UI “Mailer error” copy

Test plan

  • Integration tests for SMTP success + SMTP failure → 503
  • After merge: redeploy Render API
  • Confirm /api/v1/health includes mailerConfigured
  • Forgot password for a real account (or expect fast 503 if Gmail SMTP is blocked — prefer Resend on Render)

Return 503 when SMTP/Resend is missing or send fails in production, add SMTP connection timeouts, and expose mailerConfigured on health for easier Render debugging.
@habiibullahm
habiibullahm merged commit ea8872d into main Aug 5, 2026
@habiibullahm
habiibullahm deleted the bugfix/forgot-password-mailer-timeouts branch August 5, 2026 10:57
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.

1 participant