Migrate email service from SendGrid to AWS SES #2629
+2,704
−469
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Migrates the email service from SendGrid to AWS SES (Simple Email Service) for better integration with existing AWS infrastructure.
Changes
ses-service.tsto replacesendgrid-service.tssendgrid-service.tsfileemail-controller.tsaccount-service.ts@aws-sdk/client-sesdependency@sendgrid/maildependencyEnvironment Variables Changes
Removed:
SENDGRID_API_KEYAdded:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGIONImportant Configuration Notes
AWS Region: The
AWS_REGIONmust 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:
[email protected][email protected][email protected][email protected][email protected]- Will fail silentlyIf 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
Testing
Closes #2528