File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1093,13 +1093,17 @@ the email contents:
1093
1093
<h1>Welcome {{ email.toName }}!</h1>
1094
1094
{# ... #}
1095
1095
1096
- By default this will create an attachment using the file path as filename :
1096
+ By default this will create an attachment using the file path as file name :
1097
1097
``Content-Disposition: inline; name="cid..."; filename="@images/logo.png" ``.
1098
- This behavior can be overridden by passing a name ( the third argument) :
1098
+ This behavior can be overridden by passing a custom file name as the third argument:
1099
1099
1100
1100
.. code-block :: html+twig
1101
1101
1102
- <img src="{{ email.image('@images/logo.png', name: 'my-logo.png') }}" alt="My Logo">
1102
+ <img src="{{ email.image('@images/logo.png', 'image/png', 'logo-acme.png') }}" alt="ACME Logo">
1103
+
1104
+ .. versionadded :: 7.3
1105
+
1106
+ The third argument of ``email.image() `` was introduced in Symfony 7.3.
1103
1107
1104
1108
.. _mailer-inline-css :
1105
1109
You can’t perform that action at this time.
0 commit comments