{% 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 %} {% 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.getFrom()|map(addr => addr.toString())|join(', ')|default('(empty)') }}{% elseif message.headers.has('from') %}
{{ message.headers.get('from').bodyAsString()|default('(empty)') }}{% else %}
(empty){% endif %} To {% if message.to is defined %} {# Email instance #}
{{ message.getTo()|map(addr => addr.toString())|join(', ')|default('(empty)') }}{% elseif message.headers.has('to') %}
{{ message.headers.get('to').bodyAsString()|default('(empty)') }}{% else %}
(empty){% endif %}
{% for header in message.headers.all|filter(header => (header.name ?? '')|lower not in ['subject', 'from', 'to']) %} {{- header.toString }} {%~ endfor %}
{%- if message.htmlCharset() %} {{- htmlBody|convert_encoding('UTF-8', message.htmlCharset()) }} {%- else %} {{- htmlBody }} {%- endif -%}
{%- if message.textCharset() %} {{- textBody|convert_encoding('UTF-8', message.textCharset()) }} {%- else %} {{- textBody }} {%- endif -%}
{{ attachment.toString() }}
{{ message.body().toString() }}
{{ message.body().asDebugString() }}
{{ message.toString() }}