From 3f1518390ce4f4b11c4b86fb04e9272407101b53 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 21 Mar 2022 17:53:14 +0100 Subject: [PATCH] [Mime] Allow to embed images as CSS backgrounds --- mailer.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mailer.rst b/mailer.rst index 68939c4c3ca..8b4f6d6678b 100644 --- a/mailer.rst +++ b/mailer.rst @@ -467,10 +467,18 @@ images inside the HTML contents:: // ... ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo') ->embedFromPath('/path/to/images/signature.gif', 'footer-signature') + // reference images using the syntax 'cid:' + "image embed name" ->html(' ... ...') + + // use the same syntax for images included as CSS background images + ->html('...
...
...') ; +.. versionadded:: 6.1 + + The support of embedded images as CSS backgrounds was introduced in Symfony 6.1. + .. _mailer-configure-email-globally: Configuring Emails Globally pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy