File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -467,10 +467,18 @@ images inside the HTML contents::
467
467
// ...
468
468
->embed(fopen('/path/to/images/logo.png', 'r'), 'logo')
469
469
->embedFromPath('/path/to/images/signature.gif', 'footer-signature')
470
+
470
471
// reference images using the syntax 'cid:' + "image embed name"
471
472
->html('<img src="cid:logo"> ... <img src="cid:footer-signature"> ...')
473
+
474
+ // use the same syntax for images included as CSS background images
475
+ ->html('... <div style="background-image: url(cid:footer-signature)"> ... </div> ...')
472
476
;
473
477
478
+ .. versionadded :: 6.1
479
+
480
+ The support of embedded images as CSS backgrounds was introduced in Symfony 6.1.
481
+
474
482
.. _mailer-configure-email-globally :
475
483
476
484
Configuring Emails Globally
You can’t perform that action at this time.
0 commit comments