diff --git a/components/mime.rst b/components/mime.rst index c043b342ebc..8cc61b82fbc 100644 --- a/components/mime.rst +++ b/components/mime.rst @@ -106,7 +106,7 @@ Now, enable the extension:: $twig->addExtension(new CssInlinerExtension()); The same process should be used for enabling other extensions, like the -:ref:`MarkdownExtension ` and :ref:`InkyExtension `. +:ref:`MarkdownExtension `. Creating Raw Email Messages --------------------------- diff --git a/mailer.rst b/mailer.rst index 6979c91bc31..f0f9e2e80d0 100644 --- a/mailer.rst +++ b/mailer.rst @@ -1255,62 +1255,6 @@ the entire email contents from Markdown to HTML: [Activate your account]({{ url('...') }}) {% endapply %} -.. _mailer-inky: - -Inky Email Templating Language -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Creating beautifully designed emails that work on every email client is so -complex that there are HTML/CSS frameworks dedicated to that. One of the most -popular frameworks is called `Inky`_. It defines a syntax based on some HTML-like -tags which are later transformed into the real HTML code sent to users: - -.. code-block:: html - - - - - This is a column. - - - -Twig provides integration with Inky via the ``InkyExtension``. First, install -the extension in your application: - -.. code-block:: terminal - - $ composer require twig/extra-bundle twig/inky-extra - -The extension adds an ``inky_to_html`` filter, which can be used to convert -parts or the entire email contents from Inky to HTML: - -.. code-block:: html+twig - - {% apply inky_to_html %} - - - - -

Welcome {{ email.toName }}!

-
- - {# ... #} -
-
- {% endapply %} - -You can combine all filters to create complex email messages: - -.. code-block:: twig - - {% apply inky_to_html|inline_css(source('@styles/foundation-emails.css')) %} - {# ... #} - {% endapply %} - -This makes use of the :ref:`styles Twig namespace ` we created -earlier. You could, for example, `download the foundation-emails.css file`_ -directly from GitHub and save it in ``assets/styles``. - .. _signing-and-encrypting-messages: Signing and Encrypting Messages @@ -2275,11 +2219,9 @@ the :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\MailerAssertionsTrait`:: .. _`Brevo`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Mailer/Bridge/Brevo/README.md .. _`default_socket_timeout`: https://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout .. _`DKIM`: https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail -.. _`download the foundation-emails.css file`: https://github.com/foundation/foundation-emails/blob/develop/dist/foundation-emails.css .. _`Google Gmail`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Mailer/Bridge/Google/README.md .. _`high availability`: https://en.wikipedia.org/wiki/High_availability .. _`Infobip`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Mailer/Bridge/Infobip/README.md -.. _`Inky`: https://get.foundation/emails/docs/inky.html .. _`league/html-to-markdown`: https://github.com/thephpleague/html-to-markdown .. _`load balancing`: https://en.wikipedia.org/wiki/Load_balancing_(computing) .. _`MailerSend`: https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Mailer/Bridge/MailerSend/README.md