{% extends "admin-base.html" %} {% from "ui.html" import csrf_field, action with context %} {% block page_title %}{{ _("Email sending") }}{% endblock %} {% block section_crumbs %}{{ _("Email sending") }}{% endblock %} {% block section %}

{{ _("Email sending") }}

{% if settings_view %}{{ _("Configured") }}{% else %}{{ _("Not configured") }}{% endif %}

{{ _("To send invitations and “forgotten password” links. Without settings, invitation links are shown to the person inviting.") }}

{% if settings_view %}

{{ _("Check sending") }}

{{ _("Through {server}, on behalf of {sender}.", server=settings_view.host ~ ":" ~ settings_view.port, sender=settings_view.sender) }}

{% endif %}

{{ _("SMTP server") }}

{{ csrf_field() }}

{{ _("Encrypted, never shown again.") }}

{% if settings_view and settings_view.has_password %}
{% endif %}
{% if settings_view %}

{{ _("Disable email sending") }}

{{ _("Invitations and “forgot password” links will no longer be sent; the settings are erased.") }}

{{ action("/admin/mail/delete", _("Turn off sending"), confirm=_("Disable email sending? Invitations will no longer be sent."), kind="danger", small=false) }}
{% endif %} {% endblock %}