{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set events = collector.events %} {% if events.messages|length %} {% set icon %} {% include('@WebProfiler/Icon/mailer.svg') %}
{% endset %} {% set text %} {% for transport in events.transports %} {% endfor %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }} {% endif %} {% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block menu %} {% set events = collector.events %} {% endblock %} {% block panel %} {% set events = collector.events %}No emails were sent.
{{ message.toString() }}
{{ (message.headers.get('from').bodyAsString() ?? '(empty)')|replace({'From:': ''}) }}To
{{ (message.headers.get('to').bodyAsString() ?? '(empty)')|replace({'To:': ''}) }}
{% for header in message.headers.all|filter(header => (header.name ?? '') not in ['Subject', 'From', 'To']) %} {{- header.toString }} {%~ endfor %}
{%- if message.htmlCharset() %} {{- message.htmlBody()|convert_encoding('UTF-8', message.htmlCharset()) }} {%- else %} {{- message.htmlBody() }} {%- endif -%}
{%- if message.textCharset() %} {{- message.textBody()|convert_encoding('UTF-8', message.textCharset()) }} {%- else %} {{- message.textBody() }} {%- endif -%}
{{ attachment.toString() }}
{{ message.body().asDebugString() }}
{{ message.toString() }}