Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5d55b4

Browse filesBrowse files
committed
[WebProfilerBundle] Add a "previews tab in mailer profiler for HTML email
1 parent 9ec8912 commit b5d55b4
Copy full SHA for b5d55b4

File tree

2 files changed

+18
-1
lines changed
Filter options

2 files changed

+18
-1
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/CHANGELOG.md
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.4
5+
---
6+
7+
* Add a "preview" tab in mailer profiler for HTML email
8+
49
5.2.0
510
-----
611

@@ -33,7 +38,7 @@ CHANGELOG
3338
-----
3439

3540
* added information about orphaned events
36-
* made the toolbar auto-update with info from ajax reponses when they set the
41+
* made the toolbar auto-update with info from ajax reponses when they set the
3742
`Symfony-Debug-Toolbar-Replace header` to `1`
3843

3944
4.0.0

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/mailer.html.twig
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@
141141
</div>
142142
{% if message.htmlBody is defined %}
143143
{# Email instance #}
144+
<div class="tab">
145+
<h3 class="tab-title">HTML preview</h3>
146+
<div class="tab-content">
147+
<pre class="prewrap" style="max-height: 600px">
148+
<iframe
149+
src="data:text/html;base64;charset=utf-8,{{ message.htmlBody()|raw|base64_encode }}"
150+
style="height: 80vh;width: 100%;"
151+
>
152+
</iframe>
153+
</pre>
154+
</div>
155+
</div>
144156
<div class="tab">
145157
<h3 class="tab-title">HTML Content</h3>
146158
<div class="tab-content">

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.