I would like to build a send activation email form on front-end, for users who didn't get or accidentaly delete the activation email.

I can call the users/send-activation-email action to achieve this, but this action only accept a userId as parameter, not the email address.

As I can't load unverified users from the front-end, it seems that I can't get the id of the current unverified user.

I know I could write a plugin for this, but I was wondering if there's any way to achieve this without?

Example of non-working send activation email form:

<form method="post" accept-charset="UTF-8">
    {{ csrfInput() }}
    <input type="hidden" name="action" value="users/send-activation-email">
    {{ redirectInput('') }}
    <input type="email" name="email" required>
    <input type="submit" value="Submit">

1 Answer 1


You can get the user by email

{% set user = craft.users.status(null).email("[email protected]").one() %}
{{ user.id?? 'no user found' }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.