Skip to content

Dsm email service migration#24

Merged
DerekMalone merged 3 commits into
mainfrom
dsm-email-service-migration
Feb 1, 2026
Merged

Dsm email service migration#24
DerekMalone merged 3 commits into
mainfrom
dsm-email-service-migration

Conversation

@DerekMalone

Copy link
Copy Markdown
Collaborator

Changes

  • Code reviewed by self
  • Tests added/updated
  • No console errors
  • Branch up to date with main

Optional Notices

  • Database migrations
  • Docker rebuild required
  • Will need to clear current users
  • Email is currently defaulted to send to our forkbendz@gmail.com
    - Until a domain is established and an email account is verified with it, we can only register 1 user as we can only send to
    one email address until above occurs.

Env vars to add:

  • RESEND_API_KEY - Get from Resend dashboard
  • RESEND_FROM_EMAIL (optional) - Defaults to onboarding@resend.dev

Env vars to remove:

  • SENDGRID_API_KEY
  • SENDGRID_FROM_EMAIL

Description

Migrate email service from SendGrid to Resend for verification and password reset emails. Swaps the sendgrid package for resend, updates env var references, and refactors both send functions to use Resend's API.

Testing

  • Registered new account in dev
  • Verified email sent successfully via Resend dashboard

Commands Required for Testing or After Merge?

  # Rebuild backend for new dependency                                                                                                       
  docker compose build backend                                                                                                               
                                                                                                                                             
  # Restart containers                                                                                                                       
  docker compose down && docker compose up -d

  - Replace sendgrid package with resend in requirements.txt
  - Update settings.py with RESEND_* env var references
  - Refactor send functions in email.py to use Resend API
  - Update documentation with migration status and domain TODO
@DerekMalone
DerekMalone merged commit d5b5048 into main Feb 1, 2026
1 check passed
@DerekMalone
DerekMalone deleted the dsm-email-service-migration branch February 1, 2026 19:53
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