You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mailables which have inline images embedded by {!! $message->embed(public_path($storagepath.'/img/image.jpg')) !!}
do not have the binary Data embedded when the preview is rendered in the browser by the render() method.
The Images are embedded correctly in the mail when it is sent.
Steps To Reproduce
Generate a mailable where an image is embedded in the view-template via $message->embed() method.
i.e. <img src="{!! $message->embed(public_path($storagepath.'/img/image.jpg')) !!}" />
send mail to check that the image is visible in the mail
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Oh, i must have missed this one. Allthough i searched the issues for the described behaviour.
Since this is already fixed, i close this issue .
Sorry for the noise and Thankyou Mohammad!
Laravel Version
10.15.0
PHP Version
8.1.18
Database Driver & Version
No response
Description
Mailables which have inline images embedded by
{!! $message->embed(public_path($storagepath.'/img/image.jpg')) !!}
do not have the binary Data embedded when the preview is rendered in the browser by the render() method.
The Images are embedded correctly in the mail when it is sent.
Steps To Reproduce
Generate a mailable where an image is embedded in the view-template via $message->embed() method.
i.e.
<img src="{!! $message->embed(public_path($storagepath.'/img/image.jpg')) !!}" />
send mail to check that the image is visible in the mail
preview mail in the browser as explained here https://laravel.com/docs/10.x/mail#previewing-mailables-in-the-browser
Image is not shown in the preview. The Source in the image-tag is src="cid:imageid", but the corresponding data-part is missing in the output
The text was updated successfully, but these errors were encountered: