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 @@ -390,9 +390,9 @@ file or stream::
390
390
$email = (new Email())
391
391
// ...
392
392
// get the image contents from a PHP resource
393
- ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo')
393
+ ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo', 'image/png' )
394
394
// get the image contents from an existing file
395
- ->embedFromPath('/path/to/images/signature.gif', 'footer-signature')
395
+ ->embedFromPath('/path/to/images/signature.gif', 'footer-signature', 'image/gif' )
396
396
;
397
397
398
398
The second optional argument of both methods is the image name ("Content-ID" in
@@ -401,8 +401,9 @@ images inside the HTML contents::
401
401
402
402
$email = (new Email())
403
403
// ...
404
- ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo')
405
- ->embedFromPath('/path/to/images/signature.gif', 'footer-signature')
404
+ ->embed(fopen('/path/to/images/logo.png', 'r'), 'logo', 'image/png')
405
+ ->embedFromPath('/path/to/images/signature.gif', 'footer-signature', 'image/gif')
406
+
406
407
// reference images using the syntax 'cid:' + "image embed name"
407
408
->html('<img src="cid:logo"> ... <img src="cid:footer-signature"> ...')
408
409
;
You can’t perform that action at this time.
0 commit comments