# After restore, sending email invites don't work

**URL:** https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432
**Category:** Support
**Created:** [March 16, 2021, 3:49pm UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432 "2021-03-16T15:49:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![frank.manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frank.manuel/32/203348_2.png) [@frank.manuel](https://meta.discourse.org/u/frank.manuel)
#### Post date: [March 16, 2021, 3:49pm UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/1 "2021-03-16T15:49:14Z")

</div>

After cloning my discourse instance, it seems “Invite by Email” doesn’t work.

“Send Test Email” and “rake admin:invite” both work, but sending an invite email via the Invites page doesn’t work.(neither does Resend).

There are no error logs or error messages, and no failed tasks on sidekiq.

Thanks.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [March 16, 2021, 3:57pm UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/2 "2021-03-16T15:57:53Z")

</div>

Can you check that the setting `disable emai`l is set to no (it is set to yes or non-staff after an import). If you hid the alert banners via css, you may not know that after an import the emails sent with discourse are blocked until you act on it.

---

<div class="post-metadata">

### Author: ![frank.manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frank.manuel/32/203348_2.png) [@frank.manuel](https://meta.discourse.org/u/frank.manuel)
#### Post date: [March 16, 2021, 4:34pm UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/3 "2021-03-16T16:34:20Z")

</div>

This is it, thanks! It was set to “non-staff”, which is odd because I’m pretty sure I was staff when i tried to invite. Anyway, I set it to “no”, and it works now.

I didn’t know know imports didn’t make a 100% faithful copy. Although I guess this is somewhat documented [here](https://meta.discourse.org/t/all-email-disabled-after-restoring-backup/109742).

Thanks again.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [March 16, 2021, 4:39pm UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/4 "2021-03-16T16:39:20Z")

</div>

In this instance, non staff means that it will only send emails to staff members, because right after an restore you might need to make sure everything is ok before the forum send anything.

If you need to rebuild again, rebake or if the avatars are not already regenerated, it’s best to not have everyone coming back right now.

---

<div class="post-metadata">

### Author: ![frank.manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frank.manuel/32/203348_2.png) [@frank.manuel](https://meta.discourse.org/u/frank.manuel)
#### Post date: [March 16, 2021, 10:56pm UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/5 "2021-03-16T22:56:31Z")

</div>

Thanks!

I have to say though, it would be nice if the Invite page had some notice that it was dependent on the disable\_emails setting, if emails is disabled. Something along the lines of

> “Invite by email” and “Resend invite” require that the “disable emails” setting is set to “no”, otherwise no email will be sent.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [March 17, 2021, 1:49am UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/6 "2021-03-17T01:49:14Z")

</div>

This is usually taken care of by the global banner, I see no reason to add a second copy to the invite form?

---

<div class="post-metadata">

### Author: ![frank.manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frank.manuel/32/203348_2.png) [@frank.manuel](https://meta.discourse.org/u/frank.manuel)
#### Post date: [March 17, 2021, 9:11am UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/7 "2021-03-17T09:11:17Z")

</div>

Oh, you’re right. I didn’t notice the banner. It appeared between the “Enabled notifications” and “Let’s start the discussion”, and I got so used to the banners up there that they just disappeared for me.

Thanks.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 16, 2021, 9:11am UTC](https://meta.discourse.org/t/after-restore-sending-email-invites-dont-work/183432/8 "2021-04-16T09:11:57Z")

</div>

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