Skip to content Skip to sidebar Skip to footer

Sending Base64 Images Using Laravel

I am using Laravel to send emails and plain text works fine. However, I am having an issue attaching images to the email. As of right now, images are stored in the DB as Base64 Str

Solution 1:

You have to decode the image first like this:

$message->embedData(base64_decode($data['photos'][$x]), 'Blah')

Post a Comment for "Sending Base64 Images Using Laravel"