{% extends "pretixcontrol/organizers/base.html" %} {% load i18n %} {% load bootstrap3 %} {% load urlreplace %} {% load icon %} {% load compress %} {% load static %} {% block inner %}

{% trans "Outgoing email" %}

{% trans "Email details" %}

{% trans "From" context "email" %}
{{ sender }}
{% trans "To" context "email" %}
{{ mail.to|join:", " }}
{% if mail.cc %}
{% trans "Cc" context "email" %}
{{ mail.cc|join:", " }}
{% endif %} {% if mail.bcc %}
{% trans "Bcc" context "email" %}
{{ mail.bcc|join:", " }}
{% endif %}
{% trans "Subject" %}
{{ mail.subject }}
{% trans "Status" %}
{% if mail.status == "queued" %} {% icon "clock-o" %} {% trans "queued" %} {% elif mail.status == "inflight" %} {% icon "send" %} {% trans "being sent" %} {% elif mail.status == "awaiting_retry" %} {% icon "repeat" %} {% trans "will be retried" %} {% elif mail.status == "failed" %} {% icon "warning" %} {% trans "failed" %} {% elif mail.status == "bounced" %} {% icon "exclamation-circle" %} {% trans "bounced" %} {% elif mail.status == "withheld" %} {% icon "ban" %} {% trans "withheld" %} {% elif mail.status == "aborted" %} {% icon "ban" %} {% trans "aborted" %} {% elif mail.status == "sent" %} {% icon "check" %} {% trans "sent" %} {% endif %}
{% trans "Creation" %}
{{ mail.created|date:"SHORT_DATETIME_FORMAT" }}
{% if mail.sent %}
{% trans "Sent" %}
{{ mail.sent|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if mail.retry_after and mail.status == "awaiting_retry" %}
{% trans "Next attempt (estimate)" %}
{{ mail.retry_after|date:"SHORT_DATETIME_FORMAT" }}
{% endif %} {% if mail.event %}
{% trans "Event" %}
{{ mail.event }}
{% endif %} {% if mail.order %}
{% trans "Order" %}
{{ mail.order.code }}{% if mail.orderposition %}- {{ mail.orderposition.positionid }}{% endif %}
{% endif %} {% if mail.customer %}
{% trans "Customer" %}
{% icon "user fa-fw" %} {{ mail.customer }}
{% endif %}
{% if mail.actual_attachments %}
{% trans "Attachments" %}
    {% for a in mail.actual_attachments %}
  • {% if a.type == "text/calendar" %} {% icon "calendar-plus-o fa-fw" %} {% elif a.type == "application/pdf" %} {% icon "file-pdf-o fa-fw" %} {% elif "image/" in a.type %} {% icon "file-image-o fa-fw" %} {% elif "msword" in a.type or "document" in a.type %} {% icon "file-word-o fa-fw" %} {% elif "excel" in a.type or "spreadsheet" in a.type %} {% icon "file-excel-o fa-fw" %} {% elif "powerpoint" in a.type or "presentation" in a.type %} {% icon "file-powerpoint-o fa-fw" %} {% elif "pkpass" in a.type %} {% icon "qrcode fa-fw" %} {% else %} {% icon "file-o fa-fw" %} {% endif %} {{ a.name }} ({{ a.size|filesizeformat }})
  • {% endfor %}
{% endif %}
{% if mail.is_failed %}
{{ mail.error }}
{{ mail.error_detail }}
{% endif %} {% if mail.body_html %}
{% if mail.sensitive %}

{% icon "eye-slash fa-4x" %}

{% blocktrans trimmed %} Sensitive content not shown for security reasons {% endblocktrans %}

{% else %} {{ data_url|json_script:"mail_body_html" }} {% endif %}
{% endif %}
{% if mail.sensitive %}

{% icon "eye-slash fa-4x" %}

{% blocktrans trimmed %} Sensitive content not shown for security reasons {% endblocktrans %}

{% else %}
{{ mail.body_plain }}
{% endif %}
{% for k, v in mail.headers.items %}{{ k }}: {{ v }}
{% endfor %}

{% trans "Additional headers will be added by the mail server and are not visible here." %}

{% compress js %} {% endcompress %} {% endblock %}