2
votes

I need to verify email addresses for my customers so that I can send emails on their behalf. AWS SES has a sender verification feature where you need to send the email address in the request body and SES will send a verification email on that email address with a confirmation link.

enter image description here

We can also configure redirection URLs for success and failure while setting up a custom email template.

enter image description here

The issue is that I'm not getting any parameters when it redirects to my custom URL. I need at least the email_id in the redirected URL params so that I can mark the email verified in my app.

1

1 Answers

0
votes

Currently, there is no option to pass any query parameter on the redirect URL. For now, I see two possible solutions:

  1. [...] you can create different customized verification email templates for different email addresses you're attempting to verify, each using its own success redirect link (e.g. with the additional query string appended) [...]

Answer to the same question in AWS forum

  1. Fetching identity verification status using GetIdentityVerificationAttributes. You can create lambda function that runs once every 5 mins and calls for all identity verifications, then filter by status Success and update your app according to it. AWS documentation for GetIdentityVerificationAttributes