display list of mailboxes in alias contact manager

This commit is contained in:
Son NK 2020-05-10 18:53:44 +02:00
parent 8f35290a21
commit cbfeee4e28
1 changed files with 9 additions and 1 deletions

View File

@ -26,7 +26,15 @@
</p>
<p>
{% if alias.mailbox_id %}
Make sure you send the email from the mailbox <b>{{ alias.mailbox.email }}</b>.
{% if alias.mailboxes | length == 1 %}
Make sure you send the email from the mailbox <b>{{ alias.mailbox.email }}</b>.
{% else %}
Make sure you send the email from one of the following mailboxes: <br>
{% for mailbox in alias.mailboxes %}
- <b>{{ mailbox.email }}</b> <br>
{% endfor %}
{% endif %}
This is because only the mailbox that owns the alias can send emails from it.
{% else %}
Make sure you send the email from your personal email address ({{ current_user.email }}).