Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reject utf8 emails in transactional endpoint #2270

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

KishenKumarrrrr
Copy link
Contributor

Problem

In this PR, I modify the validation for the transactional email endpoint such that it rejects emails that contain UTF8 characters with a HTTP 400. In the current implementation, we allow for emails with UTF8 characters. However, these email addresses are ultimately rejected by AWS SES which result in a HTTP 500 being thrown from the transactional email endpoint. Since AWS SES currently does not support UTF8 characters in the local part of emails and there are no workarounds, the only option we have is to gracefully reject these email addresses.

@jia1
Copy link
Member

jia1 commented Aug 7, 2024

I assume we care only about recipient emails and nothing else. LGTM

@jia1 jia1 merged commit 6fff8b5 into master Aug 7, 2024
36 of 37 checks passed
@jia1 jia1 deleted the fix/reject-utf8-emails branch August 7, 2024 05:43
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.

2 participants