I am trying to send an email in which I want an image to be sent in the body, not that the image is attached, but the mail arrives to me without the image.
I'm embedding it in the traditional way as in an html template
<img src="{{ asset('img/mails/birthdays.jpg') }}" alt="">
But the mail arrives empty, how to make the image arrive?
I am using laravel
either host it somewhere or embed it by encoding it in base64
<img src="data:image/png;base64,BASE64IMGCONTENTHERE" />
use this to get the full path
<img src="data:image/png;base64,{{base64_encode(file_get_contents(resource_path('img/mails/birthdays.jpg')))}}" alt="">