Skip to content

Commit adb0863

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Mailer] Fix attachment changes
2 parents 47239a9 + 11c5add commit adb0863

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mailer.rst

Lines changed: 4 additions & 6 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
// ...
@@ -618,10 +620,6 @@ images inside the HTML contents::
618620
->html('... <div background="cid:footer-signature"> ... </div> ...')
619621
;
620622

621-
.. versionadded:: 6.1
622-
623-
The support of embedded images as HTML backgrounds was introduced in Symfony 6.1.
624-
625623
.. _mailer-configure-email-globally:
626624

627625
Configuring Emails Globally

0 commit comments

Comments
 (0)