Answer the question
In order to leave comments, you need to log in
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' />
Answer the question
In order to leave comments, you need to log in
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-
- <img src="cid:[email protected]">
images are not displayedProtection from external links. Use the embedded image.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question