Email confirmation not triggering when approving user
-
Hi all,
We're finding that the verify email template isn't triggering when approving users via the registration queue, whereas the 'welcome' email template will trigger as normal.
@Matthew-Price has seen that it's because the user doesn't actually exist until approved, so it looks like the email confirmation isn't triggering before being added to the approval queue.Is this something you're aware of?
I may look at writing a custom plugin that hooks into the approve action to then force a confirmation email to be sent to the user in the interim.
Thanks in advance,
Jordan -
@Jordan-Taylor Hi Jordan, can you let me know what the issue is here? Are users approved via the registration queue not properly approved?
Just for full context,
welcome
andverify_email
templates serve an identical function, to verify the email. The copy is different only due to originating context.That is, the former is sent when a user registers/is approved, while the latter is sent on email change.
-
Also, there is no email field when registering, since it's only after your account is approved that you set an email (after login).Oh, I'm mistaken about that one. User is prompted for email before they are added to the queue.
-
Hi Julian, so it sounds like our client needs to amalgamate the two emails into one so that the button to confirm is given?
They've repurposed the welcome template to have a really nice intro to new users and was conscious that the confirmation message may be lost among the helpful info.In terms of what happens:
- User registers with email address as mandatory, opted in to emails too
- Admin approves user via the registration queue
- User gets welcome email but no confirmation email
- User has pending icon / X after 24h due to email not being verified.
Further edit:
Apologies Julian, just revisited the translations and can see that welcome.cta does have the confirm your email address prompt via the welcome template.
I think there was some confusion that came about as the template was heavily modified and so that was removed...