Resending email
-
Hi,
If our connection to sendgrid is off while we had emails sent for email verification. Is there a way we can resend those emails for newly registered users?
-
@lambert-torres there is no queue that is kept, you would either need to look at the logs to specifically find the users during that time. Or follow the below steps.
You can resend the verification emails for newly registered users. FusionAuth provides an API endpoint for resending a user registration verification email.
https://fusionauth.io/docs/v1/tech/apis/users#resend-verification-email
Here are the steps to follow if you want to manually verify:
- Use the
PUT /api/user/verify-email?email={email}
endpoint to request a new verification email. This will return averificationId
in the response.
curl --location --request PUT 'http://localhost:9011/api/user/verify-email?email=<my_email@my_email.com>' \ --header 'Authorization: <API KEY>' \ --header 'X-FusionAuth-TenantId: <TENANT_ID>'
- The response should look like this:
{ "verificationId": "SOME_REALLY_LONG_ALPHANUMERIC_STRING" }
- Use the
POST /api/user/verify-email?verificationId={verificationId}
endpoint to mark the user as email verified via API.
Please note that you need to ensure that you don't have
skipVerification
set totrue
when a user registers for an application via API and your application hasverifyRegistration
set to true. This can be set programmatically via the API or via the admin UI.For more details, you can refer to the FusionAuth documentation and the FusionAuth community forum.
Please ensure that your connection to SendGrid is restored before attempting to resend the emails.
- Use the