Skip to content

Commit 11c5add

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Mailer] Fix attachment changes
2 parents 2261395 + 3371c87 commit 11c5add

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

mailer.rst

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ result of rendering some template) or PHP resources::
559559
File Attachments
560560
~~~~~~~~~~~~~~~~
561561

562-
Use the ``addPart()`` method with a ``BodyFile`` to add files that exist on your file system::
562+
Use the ``addPart()`` method with a ``File`` to add files that exist on your
563+
file system::
563564

564565
use Symfony\Component\Mime\Part\DataPart;
565566
use Symfony\Component\Mime\Part\File;
@@ -574,7 +575,8 @@ Use the ``addPart()`` method with a ``BodyFile`` to add files that exist on your
574575
->addPart(new DataPart(new File('/path/to/documents/contract.doc'), 'Contract', 'application/msword'))
575576
;
576577

577-
Alternatively you can attach contents from a stream by passing it directly to the ``DataPart`` ::
578+
Alternatively you can attach contents from a stream by passing it directly to
579+
the ``DataPart``::
578580

579581
$email = (new Email())
580582
// ...
@@ -583,9 +585,9 @@ Alternatively you can attach contents from a stream by passing it directly to th
583585

584586
.. deprecated:: 6.2
585587

586-
In Symfony versions previous to 6.2, the methods ``attachFromPath()`` and
587-
``attach()`` could be used to add attachments. These methods have been
588-
deprecated and replaced with ``addPart()``.
588+
In Symfony versions previous to 6.2, the method ``attachPart()`` could be
589+
used to add attachments. This method has been deprecated and replaced
590+
with ``addPart()``.
589591

590592
Embedding Images
591593
~~~~~~~~~~~~~~~~
@@ -626,13 +628,8 @@ images inside the HTML contents::
626628

627629
.. versionadded:: 6.1
628630

629-
The support of embedded images as HTML backgrounds was introduced in Symfony 6.1.
630-
631-
.. deprecated:: 6.2
632-
633-
In Symfony versions previous to 6.2, the methods ``embedFromPath()`` and
634-
``embed()`` could be used to embed images. These methods have been deprecated
635-
and replaced with ``addPart()`` together with inline ``DataPart`` objects.
631+
The support of embedded images as HTML backgrounds was introduced in Symfony
632+
6.1.
636633

637634
.. _mailer-configure-email-globally:
638635

0 commit comments

Comments
 (0)