1
0
Fork 0

Add warning to dashboard if email sender looks misconfigured

This can be a really obscure error, hopefully this warning will catch
potential issues.
This commit is contained in:
Mouse Reeve 2022-07-02 21:02:44 -07:00
parent 4ccbfb6b31
commit 516c4a9790
2 changed files with 20 additions and 0 deletions

View file

@ -37,6 +37,17 @@
</div>
<div class="columns block is-multiline">
{% if email_config_error %}
<div class="column is-flex">
<span class="notification is-warning is-block is-flex-grow-1">
{% blocktrans trimmed %}
Your outgoing email address, <code>{{ email_sender }}</code>, may be misconfigured.
{% endblocktrans %}
{% trans "Check the <code>EMAIL_SENDER_NAME</code> and <code>EMAIL_SENDER_DOMAIN</code> in your <code>.env</code>." %}
</span>
</div>
{% endif %}
{% if reports %}
<div class="column is-flex">
<a href="{% url 'settings-reports' %}" class="notification is-warning is-block is-flex-grow-1">