{% extends "base.html" %} {% block title %}{{ _('Email') }} · {{ appearance.name }}{% endblock %} {% block content %}

{{ _('Email') }}

{% if not cfg.configured %} {% endif %}

{{ _('SMTP relay') }}

{% if error %}{% endif %}
{{ csrf_field(request) }}

{{ _('The certificate of the server is always checked. Unencrypted connections are not possible.') }}

{% if cfg.has_password %}{% endif %}

{{ _('The password is stored encrypted and is not shown again.') }}

{{ _('Replies to messages from Surveybox go to this address, e.g. a mailbox someone reads. Each form can set its own. The sender stays the relay address so that SPF, DKIM and DMARC fit.') }}

{{ _('Test message') }}

{% if test_ok %}

{{ test_ok }}

{% endif %} {% if test_error %}{% endif %}
{{ csrf_field(request) }}

{{ _('Email templates') }}

{{ _('Own texts for invitations, confirmations, reminders and the other emails, per language.') }}

{{ _('Edit email templates') }}

{{ _('Queue and delivery log') }}

{{ _('Waiting') }}: {{ counts.queued }} · {{ _('Sent') }}: {{ counts.sent }} · {{ _('Failed') }}: {{ counts.failed }}

{% if counts.queued and cfg.configured %}
{{ csrf_field(request) }}
{% endif %}

{{ _('Failed attempts are retried after 1, 5 and 15 minutes, then after 1, 4 and 12 hours. The content of a message is stored encrypted and deleted after sending; the log keeps type, recipient and status for 90 days.') }}

{% if recent %}
{% for m in recent %} {% endfor %}
{{ _('Created') }}{{ _('Type') }}{{ _('Recipient') }}{{ _('Status') }}{{ _('Attempts') }}{{ _('Last error') }}
{{ m.created_at | datetime }} {{ _(kind_names.get(m.kind, m.kind)) }} {{ m.recipient }} {{ _(status_names.get(m.status, m.status)) }}{% if m.sent_at %}
{{ m.sent_at | datetime }}{% endif %}
{{ m.attempts }} {% if m.last_error %}{{ m.last_error }}{% endif %}
{% else %}

{{ _('No messages yet.') }}

{% endif %}
{% endblock %}