@@ -549,7 +549,8 @@ result of rendering some template) or PHP resources::
549
549
File Attachments
550
550
~~~~~~~~~~~~~~~~
551
551
552
- Use the ``addPart() `` method with a ``BodyFile `` to add files that exist on your file system::
552
+ Use the ``addPart() `` method with a ``File `` to add files that exist on your
553
+ file system::
553
554
554
555
use Symfony\Component\Mime\Part\DataPart;
555
556
use Symfony\Component\Mime\Part\File;
@@ -564,7 +565,8 @@ Use the ``addPart()`` method with a ``BodyFile`` to add files that exist on your
564
565
->addPart(new DataPart(new File('/path/to/documents/contract.doc'), 'Contract', 'application/msword'))
565
566
;
566
567
567
- Alternatively you can attach contents from a stream by passing it directly to the ``DataPart `` ::
568
+ Alternatively you can attach contents from a stream by passing it directly to
569
+ the ``DataPart ``::
568
570
569
571
$email = (new Email())
570
572
// ...
@@ -573,9 +575,9 @@ Alternatively you can attach contents from a stream by passing it directly to th
573
575
574
576
.. deprecated :: 6.2
575
577
576
- In Symfony versions previous to 6.2, the methods ``attachFromPath () `` and
577
- `` attach() `` could be used to add attachments. These methods have been
578
- deprecated and replaced with ``addPart() ``.
578
+ In Symfony versions previous to 6.2, the method ``attachPart () `` could be
579
+ used to add attachments. This method has been deprecated and replaced
580
+ with ``addPart() ``.
579
581
580
582
Embedding Images
581
583
~~~~~~~~~~~~~~~~
@@ -616,13 +618,8 @@ images inside the HTML contents::
616
618
617
619
.. versionadded :: 6.1
618
620
619
- The support of embedded images as HTML backgrounds was introduced in Symfony 6.1.
620
-
621
- .. deprecated :: 6.2
622
-
623
- In Symfony versions previous to 6.2, the methods ``embedFromPath() `` and
624
- ``embed() `` could be used to embed images. These methods have been deprecated
625
- and replaced with ``addPart() `` together with inline ``DataPart `` objects.
621
+ The support of embedded images as HTML backgrounds was introduced in Symfony
622
+ 6.1.
626
623
627
624
.. _mailer-configure-email-globally :
628
625
0 commit comments