# Consentire l'invio di email di prova quando la posta è disabilitata?

**URL:** <https://meta.discourse.org/t/allow-sending-test-emails-when-mail-is-disabled/103931>\
**Category:** Feature\
**Created:** [10 Dicembre 2018, 6:53pm UTC](https://meta.discourse.org/t/allow-sending-test-emails-when-mail-is-disabled/103931 "2018-12-10T18:53:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)\
**Post date:** [17 Dicembre 2018, 1:13pm UTC](https://meta.discourse.org/t/allow-sending-test-emails-when-mail-is-disabled/103931/4 "2018-12-17T13:13:47Z")

</div>

This is indeed a bit unpredictable, when `disable email` is set to `non-staff`,

- sending a test mail to an **admin** email works as expected.
- sending a test mail to any **non-admin** email fails silently.

IMO, we could:

1. allow an admin to send a test email to ANY email address
2. allow an admin to send a test email to any user (not just admins)
3. add a warning that a test email can only be sent to another admin

I like Option 1 because it’s the most obvious but 2 and 3 would also help make this less confusing.

> <https://github.com/discourse/discourse/blob/main/app/controllers/admin/email_controller.rb#L16>

---

_[View the full topic](https://meta.discourse.org/t/allow-sending-test-emails-when-mail-is-disabled/103931)._
