8000 feature #45765 Mailer - Display email recipients in Profiler (raziel057) · symfony/symfony@43a9a3c · GitHub
[go: up one dir, main page]

Skip to content
< 10000 script crossorigin="anonymous" defer="defer" type="application/javascript" src="https://github.githubassets.com/assets/sessions-1e75b15ae60a.js">

Commit 43a9a3c

Browse files
committed
feature #45765 Mailer - Display email recipients in Profiler (raziel057)
This PR was merged into the 6.1 branch. Discussion ---------- Mailer - Display email recipients in Profiler This information is important to see the real receivers of sent emails. It was shown using Swiftmailer. | Q | A | ------------- | --- | Branch? | 6.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #45747> | License | MIT This information was displayed in headers using Swiftmailer "X-Swift-To". ![image](https://user-images.githubusercontent.com/652505/158553811-5d58efc6-85d0-47dd-b1f4-b198c76c15f0.png) I put it as bug fix in the sense it's a missing information. With the following PR a new Recipients info is displayed ![image](https://user-images.githubusercontent.com/652505/158554069-5fbd945e-9c39-48d0-9326-3b36ea02d54a.png) Commits ------- 24e7feb Update mailer.html.twig
2 parents db99c07 + 24e7feb commit 43a9a3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@
129129

130130
<span class="label">To</span>
131131
<pre class="prewrap">{{ (message.headers.get('to').bodyAsString() ?? '(empty)')|replace({'To:': ''}) }}</pre>
132+
133+
{% if event.envelope.recipients|length > 0 %}
134+
<span class="label">Recipients</span>
135+
{% for recipient in event.envelope.recipients %}
136+
<pre class="prewrap">{{ recipient.address }}</pre>
137+
{% endfor %}
138+
{% endif %}
132139
</div>
133140
<div class="col">
134141
<span class="label">Headers</span>

0 commit comments

Comments
 (0)
0