File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -559,7 +559,8 @@ result of rendering some template) or PHP resources::
559559File 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
627625Configuring Emails Globally
You can’t perform that action at this time.
0 commit comments