{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %} {% block toolbar %} {% set events = collector.events %} {% if events.messages|length %} {% set icon %} {{ source('@WebProfiler/Icon/mailer.svg') }}
{% endset %} {% set text %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }} {% endif %} {% endblock %} {% block menu %} {% set events = collector.events %} {% endblock %} {% block panel %} {% set events = collector.events %}No emails were sent.
{{ transport }}
transport# | Subject | To | Actions |
---|---|---|---|
{{ loop.index }} | {% if event.message.subject is defined %} {{ event.message.getSubject() ?? '(No subject)' }} {% elseif event.message.headers.has('subject') %} {{ event.message.headers.get('subject').bodyAsString()|default('(No subject)') }} {% else %} (No subject) {% endif %} | {% if event.message.to is defined %} {{ event.message.getTo()|map(addr => addr.toString())|join(', ')|default('(empty)') }} {% elseif event.message.headers.has('to') %} {{ event.message.headers.get('to').bodyAsString()|default('(empty)') }} {% else %} (empty) {% endif %} |
Status: {{ transport }}
{{ message.toString() }}{% else %}
{%- if message.textCharset() %} {{- textBody|convert_encoding('UTF-8', message.textCharset()) }} {%- else %} {{- textBody }} {%- endif -%}{% else %}
The text body is empty.
{%- if message.htmlCharset() %} {{- htmlBody|convert_encoding('UTF-8', message.htmlCharset()) }} {%- else %} {{- htmlBody }} {%- endif -%}{% else %}
The HTML body is empty.
{{- body }}{% else %}
The body is empty.
{{ message.body().asDebugString() }}
{{ message.toString() }}