Closed as not planned
Closed as not planned
Description
Symfony version(s) affected
4.4
Description
mailer:
envelope:
recipients:
During development recipients from envelope cannot be seen.
How to reproduce
mailer:
envelope:
recipients: ['%env(DEV_EMAILS_REDIRECT_TO)%']
Possible Solution
{% if event.envelope.recipients|length > 0 %}
<span class="label">Recipients</span>
{% for recipient in event.envelope.recipients %}
<pre class="prewrap">{{ recipient.address }}</pre>
{% endfor %}
{% endif %}
after line 132:
{{ (message.headers.get('to').bodyAsString() ?? '(empty)')|replace({'To:': ''}) }}
Additional Context
No response