You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect when I try to send an email for user creation it would let me know that the user was created and the email was not sent or give me some next steps. Right now I would just be stuck at this screen (plus an error in the bottom left corner) and not know what to do next:
How to reproduce
I use the user creation wizard at /cp/users/create to create a new user and the last step is customizing the invitation. I have the "Send Email Invitation" toggled on and click the Create and Send Email button and then an error pops up (something about the email sending host/port being wrong). That's fine but at that point if I hit the Create and Send Email button again it gives me a different error "The given data was invalid" because the system knows it has already created a new user for me. I can see the user .yaml in my site files, but as someone using the control panel I would have no idea that the user was created.
It's great that it let me know there was an issue sending the email but at this point the user is created, it should tell me that and let me know it just couldn't send the invitation. Even if I turn off the "Send Email Invitation" toggle and click the Create User button it still gives me the "The given data was invalid" error message because the user is already created so it can't create it again.
Logs
[2024-01-11 10:35:29] local.ERROR: Connection could not be established with host "localhost:1025": stream_socket_client(): Unable to connect to localhost:1025 (Connection refused) {"userId":"c44ac742-05b5-4627-80e5-608236125423","exception":"[object] (Symfony\\Component\\Mailer\\Exception\\TransportException(code: 0): Connection could not be established with host \"localhost:1025\": stream_socket_client(): Unable to connect to localhost:1025 (Connection refused) at /Users/joncampbell/Local Sites/multitest/app/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154)
duncanmcclean
changed the title
Create and Send Email doesn't handle email sending errors nicely
When creating users, "Create and Send Email" doesn't handle email sending errors nicely
Jan 15, 2024
Bug description
I expect when I try to send an email for user creation it would let me know that the user was created and the email was not sent or give me some next steps. Right now I would just be stuck at this screen (plus an error in the bottom left corner) and not know what to do next:
How to reproduce
I use the user creation wizard at
/cp/users/create
to create a new user and the last step is customizing the invitation. I have the "Send Email Invitation" toggled on and click the Create and Send Email button and then an error pops up (something about the email sending host/port being wrong). That's fine but at that point if I hit the Create and Send Email button again it gives me a different error "The given data was invalid" because the system knows it has already created a new user for me. I can see the user .yaml in my site files, but as someone using the control panel I would have no idea that the user was created.It's great that it let me know there was an issue sending the email but at this point the user is created, it should tell me that and let me know it just couldn't send the invitation. Even if I turn off the "Send Email Invitation" toggle and click the Create User button it still gives me the "The given data was invalid" error message because the user is already created so it can't create it again.
Logs
Environment
Installation
Starter Kit using via CLI
Antlers Parser
None
Additional details
Multisite
The text was updated successfully, but these errors were encountered: