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::
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
// ...
@@ -618,10 +620,6 @@ images inside the HTML contents::
618
620
->html('... <div background="cid:footer-signature"> ... </div> ...')
619
621
;
620
622
621
- .. versionadded :: 6.1
622
-
623
- The support of embedded images as HTML backgrounds was introduced in Symfony 6.1.
624
-
625
623
.. _mailer-configure-email-globally :
626
624
627
625
Configuring Emails Globally
You can’t perform that action at this time.
0 commit comments