{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if collector.messageCount %} {% set icon %} {% if profiler_markup_version == 1 %}
{% else %} {{ include('@Swiftmailer/Collector/icon.svg') }} {% endif %} {% endset %} {% set text %} {% if profiler_markup_version == 1 %} {% for name in collector.mailers %} {% if not loop.first %}No e-mail messages were sent.
Mailer Name | Num. of messages | Messages status | Notes |
---|---|---|---|
{{ name }} | {{ collector.messageCount(name) }} | {{ collector.isSpool(name) ? 'spooled' : 'sent' }} | {{ collector.isDefaultMailer(name) ? 'This is the default mailer' }} |
No e-mail messages were sent.
{{ (message.headers.get('from').toString ?? '(empty)')|replace({'From:': ''}) }}To
{{ (message.headers.get('to').toString ?? '(empty)')|replace({'To:': ''}) }}
{% for header in message.headers.all|filter(header => (header.fieldName ?? '') not in ['Subject', 'From', 'To']) %} {{- header -}} {% endfor %}
{%- if message.charset is defined and message.charset %} {{- message.body|convert_encoding('UTF-8', message.charset) }} {%- else %} {{- message.body }} {%- endif -%}
{%- if messagePart.charset is defined and messagePart.charset %} {{- messagePart.body|convert_encoding('UTF-8', messagePart.charset) }} {%- else %} {{- messagePart.body }} {%- endif -%}