Skip to content

Commit 7292c30

Browse files
committed
Tweaks
1 parent d870d86 commit 7292c30

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

mailer.rst

+7-3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)