cancel
Showing results for 
Search instead for 
Did you mean: 

Image is broken in MAC while embedding in Email body using POP3.SMPTP

KirtishTrivedi
Level 5
Hi, 

I am trying to embed Image in Email Body using POP3/SMTP using below

<img src="Path\Sample.jpg" width="500" height="90" border="0" alt="My Picture">

It is visible fine in Windows but when I send the Image to user having MAC OS, the image is broken. Can somebody assist how to resolve this ?

------------------------------
Kirtish Trivedi
------------------------------
1 BEST ANSWER

Best Answers

AndreyKudinov
Level 10
There is 3 ways to embed image in email: 
1) Remote images (src="https://example.com/myimage.jpg") - some email clients will block them by default and ask permission to load them, because this is a potential privacy violation.
2) Base64 encoded image (src="data:image/jpg;base64....") - base64 increases size of email when image is big, might not work in some cases.
3) Attached image (src="cid:myimage.jpg") - probably the most reliable way this days

Some mail clients refuse to display one or another.
It is unclear which one you are using and what does 'broken' actually means.

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

View answer in original post

2 REPLIES 2

AndreyKudinov
Level 10
There is 3 ways to embed image in email: 
1) Remote images (src="https://example.com/myimage.jpg") - some email clients will block them by default and ask permission to load them, because this is a potential privacy violation.
2) Base64 encoded image (src="data:image/jpg;base64....") - base64 increases size of email when image is big, might not work in some cases.
3) Attached image (src="cid:myimage.jpg") - probably the most reliable way this days

Some mail clients refuse to display one or another.
It is unclear which one you are using and what does 'broken' actually means.

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

Thanks @AndreyKudinov,

I was able to do it using 3 option​

3) Attached image (src="cid:myimage.jpg")

------------------------------
Kirtish Trivedi
------------------------------