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

[4.x] Catch errors when sending user activation email #9382

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request implements handling to catch any errors thrown by mailers when sending the user activation email as part of the create user wizard.

Previously, when a mailer threw an exception while sending the activation email and you tried to re-submit you'd hit a validation error due to the email already being used, since the user was created the last time the wizard was submitted.

With the handling added in this PR, the wizard will complete but the user will see a toast message on the next page telling them the email didn't get sent.

Note: The toast will only display if you're using the sync queue driver. If you're using a "proper" queue driver, we assume you already know how to handle failed jobs.

CleanShot 2024-01-23 at 20 43 33

Fixes #9309.

@jasonvarga jasonvarga merged commit 1f78d85 into 4.x Jan 23, 2024
35 checks passed
@jasonvarga jasonvarga deleted the catch-activation-email-error branch January 23, 2024 21:56
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.

When creating users, "Create and Send Email" doesn't handle email sending errors nicely
2 participants