Skip to content

Cannot see Recipients(from Envelope) on Email during development - symfony/web-profiler-bundle #47889

Closed as not planned
@Anastasios89

Description

@Anastasios89

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions