Wizard will not send validation email more than once

I had a topic about this once before, but I can’t find it. This is the second time this has happened in the last while, so I’m bringing it up again.

Synopsis: If a new admin user visits the Wizard and creates their admin account but their outgoing email is broken, there is little way for them to ever get logged in.

Steps to reproduce: Visit wizard, set up account and have validation email sent, but have that email not be delivered (e.g., because they hadn’t finished configuring Mailgun).

If you re-visit the site, the Wizard appears because they never validated the account. It would seem like they could try again to use the wizard to send the validation email, but you can’t, it does nothing, and provides not hint that it’s not doing what you think.

The only way to recover is to guess at some url (otherwise, you get only the wizard page), find your way to the login dialog, and then do the “forgot password” sequence.

The likelihood of having your email configuration broken when you first visit the site is fairly high, so it’s not hard to get caught in this trap.

I haven’t noticed this until recently, so I think that the wizard used to send multiple attempts. I’m installing on stable now to see if it’s my imagination.

Edit: I think that Discourse does not send the activation email on subsequent create-the-admin-account, but the “resend activation email” button is there, so people should know to click that.

1 Like

This one?


(Discourse tip: see your created topics under Profile - pfaffman - Discourse Meta)

1 Like

Yeah. I tried searching @pfaffman, but checking my profile might have helped. :slight_smile:

And I still don’t know, but now twice in 25 days I’ve had new users with this problem.

Doesn’t happen on our hosting because email is pre-configured :smiley:

What can I say? Email is the hardest problem in computer science. I guess you could put some text in there “by the way, stop f**king up your email config?”


I accept that this is less than ideal, @gerhard why don’t you have a look at the code and see what can be done to re-send on this step?


Was there any resolution on this @gerhard?

1 Like

That’s exactly what happened. The first activation email will either by sent at a later time when Sidekiq tries again or it won’t be sent at all if it already tried too often. Clicking the “Resend” button would have been enough, but I guess that’s too much to ask for. :wink:

I changed it so that the activation email is sent again when the admin re-registers. No need for clicking a button anymore.


I think that the problem is that there isn’t a resend button on the wizard.

Hooray! :tada:

Oh, but there is! Maybe the button should be blue?


Sure, good idea, let’s make that button blue / default!


Oh. Uh. Well. . . that’s harder to explain. . . :wink:

I think that what’s confusing is that it says “We sent an activation. . .” which implies that it got sent just before that message was displayed, when really, it means “We sent an activation . . . when you tried before and your mail system was broken, so you really need to click the resend button RIGHT NOW.”

Looks like you’re right. :wink:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.