We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50c531c commit fa8f5b1Copy full SHA for fa8f5b1
mailer.rst
@@ -1093,6 +1093,14 @@ the email contents:
1093
<h1>Welcome {{ email.toName }}!</h1>
1094
{# ... #}
1095
1096
+By default this will create an attachment using the file path as filename:
1097
+``Content-Disposition: inline; name="cid..."; filename="@images/logo.png"``.
1098
+This behavior can be overridden by passing a name (the third argument):
1099
+
1100
+.. code-block:: html+twig
1101
1102
+ <img src="{{ email.image('@images/logo.png', name: 'my-logo.png') }}" alt="My Logo">
1103
1104
.. _mailer-inline-css:
1105
1106
Inlining CSS Styles
0 commit comments