{% extends "layouts/app.html" %} {% from "components/breadcrumb.html" import page_header %} {% from "settings/_macros.html" import panel, row, yes_no, is_set, file_source %} {% block title %}Email Templates - NeoZen Admin{% endblock %} {% block page_header %} {% call page_header("Email Templates", subtitle="The emails NeoZen builds, shown with sample values, and how they are sent. Read-only.", breadcrumbs=[{"label": "Settings", "href": "settings"}, {"label": "Email Templates"}]) %} {% endcall %} {% endblock %} {% block content %}
{% call panel("Sending") %} {{ file_source(file) }} {% if file.config %} {% set email = file.config.email %}
{{ row("Provider", email.provider) }} {{ row("From", email.from_name ~ " <" ~ email.from_address ~ ">") }} {% if email.provider == "smtp" %} {{ row("SMTP server", email.smtp.host ~ ":" ~ email.smtp.port) }} {{ row("SMTP user", email.smtp.username or "None") }} {{ row("SMTP password", is_set(email.smtp.password)) }} {{ row("TLS", yes_no(email.smtp.use_tls)) }} {% elif email.provider == "sendgrid" %} {{ row("SendGrid API key", is_set(email.sendgrid_api_key)) }} {% elif email.provider == "postmark" %} {{ row("Postmark API key", is_set(email.postmark_api_key)) }} {% endif %}
{% endif %} {% endcall %} {% for name, message in samples %} {% call panel(name, message.subject) %}
{{ message.body_text }}
{% endcall %} {% endfor %}

The templates are in neozen.core.email.templates; an application changes them by building its own messages.

{% endblock %}