L
L
Leonid Nimchenko2018-05-08 11:50:54
Email
Leonid Nimchenko, 2018-05-08 11:50:54

How to prevent missing images in the body of the letter?

Hello.
I am creating a letter with attached images on the site. The image tag looks like this:

<img src='http:/site.com/image.php?mediaID=ODAwNTE2ODNiMDAzZWE=&type=thumb&folderID=ODE1MTY4M2IwMDNlYQ==&size=45' style='vertical-align: middle' />

In letters received on mail.yandex.ru, the image is displayed normally, but images are not displayed on mail.google.com.
Tell me, please, how to fix this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Dubrovin, 2018-05-08
@lculver

GMail doesn't always show external images, and especially doesn't like emails with dynamic images (because the image can be changed). You can either try to make the image address look like a static one, which still does not guarantee the result, or use the multipart / related part for HTML with inline images

Content-Type: multipart/related; boundary="123"

--123
Content-Type: text/html ...
Content-ID: ...
Content-Disposition: inline
...
--123
Content-Type: image/jpeg ...
Content-ID: <[email protected]>
Content-Disposition: inline
...
--123
Content-Type: image/jpeg ...
Content-ID: ...
Content-Disposition: inline
...
--123-
-
picture include as
<img src="cid:[email protected]">

K
Konstantin Tsvetkov, 2018-05-08
@tsklab

images are not displayed
Protection from external links. Use the embedded image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question