File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -458,9 +458,9 @@ file or stream::
458
458
$email = (new Email())
459
459
// ...
460
460
// get the image contents from a PHP resource
461
- ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo')
461
+ ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo', 'image/png' )
462
462
// get the image contents from an existing file
463
- ->embedFromPath('/path/to/images/signature.gif', 'footer-signature')
463
+ ->embedFromPath('/path/to/images/signature.gif', 'footer-signature', 'image/gif' )
464
464
;
465
465
466
466
The second optional argument of both methods is the image name ("Content-ID" in
@@ -469,8 +469,9 @@ images inside the HTML contents::
469
469
470
470
$email = (new Email())
471
471
// ...
472
- ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo')
473
- ->embedFromPath('/path/to/images/signature.gif', 'footer-signature')
472
+ ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo', 'image/png')
473
+ ->embedFromPath('/path/to/images/signature.gif', 'footer-signature', 'image/gif')
474
+
474
475
// reference images using the syntax 'cid:' + "image embed name"
475
476
->html('<img src="cid:logo"> ... <img src="cid:footer-signature"> ...')
476
477
;
You can’t perform that action at this time.
0 commit comments