Description
Implement automatic bounce detection and retry logic for the email sending infrastructure.
Requirements
Infrastructure
Current email system logs sends to email_logs table with status (pending, sent, failed) and error messages, but has no automatic bounce detection or retry mechanism.
Files
lib/services/email_service.dart — Dart email service
supabase/functions/send-email/index.ts — Edge function
supabase/functions/_shared/email-smtp.ts — Gmail API implementation
Description
Implement automatic bounce detection and retry logic for the email sending infrastructure.
Requirements
Infrastructure
Current email system logs sends to
email_logstable with status (pending, sent, failed) and error messages, but has no automatic bounce detection or retry mechanism.Files
lib/services/email_service.dart— Dart email servicesupabase/functions/send-email/index.ts— Edge functionsupabase/functions/_shared/email-smtp.ts— Gmail API implementation