smtp sending broken image

akoIT
akoIT used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
to troubleshoot have you tried sending the email to any online provider webmail i.e. gmail, outlook, yahoo mail?
David FavorFractional CTO
Distinguished Expert 2018

Commented:
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 Consultant

Commented:
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%.

Author

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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial