@@ -559,7 +559,8 @@ result of rendering some template) or PHP resources::
559
559
File Attachments
560
560
~~~~~~~~~~~~~~~~
561
561
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::
563
564
564
565
use Symfony\Component\Mime\Part\DataPart;
565
566
use Symfony\Component\Mime\Part\File;
@@ -574,7 +575,8 @@ Use the ``addPart()`` method with a ``BodyFile`` to add files that exist on your
574
575
->addPart(new DataPart(new File('/path/to/documents/contract.doc'), 'Contract', 'application/msword'))
575
576
;
576
577
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 ``::
578
580
579
581
$email = (new Email())
580
582
// ...
@@ -583,9 +585,9 @@ Alternatively you can attach contents from a stream by passing it directly to th
583
585
584
586
.. deprecated :: 6.2
585
587
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() ``.
589
591
590
592
Embedding Images
591
593
~~~~~~~~~~~~~~~~
@@ -626,13 +628,8 @@ images inside the HTML contents::
626
628
627
629
.. versionadded :: 6.1
628
630
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.
636
633
637
634
.. _mailer-configure-email-globally :
638
635
0 commit comments