smtp sending broken image

A program from laravel is sending Mail via smtp lotus notes, content of the body that includes image doesn't display the image at clients email, anyone had the same issue?
akoITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPRetiredCommented:
to troubleshoot have you tried sending the email to any online provider webmail i.e. gmail, outlook, yahoo mail?
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Keep in mind there are only two ways to do this...

1) Convert the image to an inline image.

2) Link to images on a public Website.

Normally the problem is an image on a local disk it target of image link + local disk images are never available for access by people receiving email.

As David Johnson suggested, send yourself a copy of the email + take a look at the MIME components.

Be clear Laravel is very good at doing exactly what you tell it to do. If you link to a local image, this is fine with Laravel because the only checks for validity of any content... including embedded links... is 100% up to the code you write, not to Laravel.
Sjef BosmanGroupware ConsultantCommented:
You can look att the source of the email in Notes, using View/Show/Page Source. See if you can find the image that's supposed to be displayed. Check if it's a "local" link (see above), a link to a public website or an embedded link, i.e. a link to an image that's embedded in the source of the mail itself. You'll find something like
<img alt="Embedded Image" height="200" width="50" src="data:image/jpeg;base64,/9j/4AXAQSkYZJRgABAQEAZIAAD..." />

Open in new window

In any case, Notes R9 supports these three types of images, though not to the full 100%.
akoITAuthor Commented:
thanks everyone, I solved the issue by putting the image file to public repo where everyone can access or view, a copied or dragged file from email composer converts it to base64 but when sent to gmail it creates another proxy url which is very limited for viewing that causes the broken image. I suggest when we create an editor of our smtp program whichever technology we use, we should also create a public repo for file management for managing attachment or embedded image file to the content, so trouble like this wont reoccur.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Laravel

From novice to tech pro — start learning today.