File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1093,13 +1093,17 @@ the email contents:
10931093 <h1>Welcome {{ email.toName }}!</h1>
10941094 {# ... #}
10951095
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 :
10971097``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:
10991099
11001100.. code-block :: html+twig
11011101
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.
11031107
11041108.. _mailer-inline-css :
11051109
You can’t perform that action at this time.
0 commit comments