Commit
Implement all email integrations
Commit details
Commit notes
This commit implements all critical email integrations throughout the application:
Authentication: - Add welcome email to user registration and Google OAuth - Implement password reset flow with new endpoints (/forgot-password, /reset-password) - Add password_reset_tokens and email_verification_tokens tables to schema - Create database migration for new tables
Subscription: - Send subscription confirmation email on upgrade - Send payment failed email on payment failure - Send subscription cancelled email on cancellation - Send storage warning emails at 80% and 100% thresholds
Marketplace: - Send purchase receipt to buyers - Send sale notification to creators - Send payout requested email on payout request - Send payout completed email on successful payout - Send payout failed email on failed payout
Collaboration: - Send workspace invitation email when inviting users - Send share link access notification (based on user preferences) - Send share link download notification (based on user preferences)
All emails are sent non-blocking to prevent transaction delays. User preferences are respected for notification emails. Proper error logging is in place for failed sends.
Updated EMAIL_SETUP_REVIEW.md to reflect implementation status.
Co-authored-by: armin.naimi <[email redacted]>
- Files changed
- 9
- Lines added
- +7,164
- Lines removed
- −3,185