File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
src/Symfony/Bundle/WebProfilerBundle
Resources/views/Collector Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4+ 5.4
5+ ---
6+
7+ * Add a "preview" tab in mailer profiler for HTML email
8+
495.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
39444.0.0
Original file line number Diff line number Diff line change 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" >
You can’t perform that action at this time.
0 commit comments