Skip to content

Conversation

@Giolii
Copy link
Member

@Giolii Giolii commented Jan 13, 2026

Summary

Migrates the email service from SendGrid to AWS SES (Simple Email Service) for better integration with existing AWS infrastructure.

Changes

  • Created new ses-service.ts to replace sendgrid-service.ts
  • Removed old sendgrid-service.ts file
  • Updated email-controller.ts
  • Updated account-service.ts
  • Added @aws-sdk/client-ses dependency
  • Removed @sendgrid/mail dependency

Environment Variables Changes

Removed:

  • SENDGRID_API_KEY

Added:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION

Important Configuration Notes

AWS Region: The AWS_REGION must match where your SES email domain is verified. Using the wrong region will cause email sending to fail.

EMAIL_USER (Sender): Must use a domain registered or verified email address in AWS SES. The local part can be customized:

If an unregistered email is used, the database will register the account but verification emails will not be sent.

CONTACT_US_LA (Receiver): Can be any valid email address.

Affected Features

  • User registration emails
  • Password reset emails
  • Contact form emails

Testing

  • Email sending functionality verified
  • Registration confirmation emails work
  • Password reset emails work
  • Contact form emails work

Closes #2528

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.

Test using AWS SES for email sending

2 participants