#45 — Gmail web client does not display embedded images
by
Marc Pampols
—
last modified
Sep 27, 2011 11:09 AM
| State | Unconfirmed |
|---|---|
| Version: | |
| Area | Process |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Marc Pampols |
| Submitted on | Sep 27, 2011 |
| Responsible |
—
|
| Target release: |
—
|
There's a problem with embedded images and Gmail web client.
This is how images are attached right now:
image["Content-ID"] = "image_%s" % image_number
This way, Gmail can't correctly recognize the images, it's necessary to add "<" and ">" in the string.
image.add_header('Content-Id','<image_%s>' % image_number)
This fix solves the problem and Gmail (also other clients) is able to display inline images.
This is how images are attached right now:
image["Content-ID"] = "image_%s" % image_number
This way, Gmail can't correctly recognize the images, it's necessary to add "<" and ">" in the string.
image.add_header('Content-Id','<image_%s>' % image_number)
This fix solves the problem and Gmail (also other clients) is able to display inline images.
- Steps to reproduce:
- Attach an image to the email.
Send to Gmail address.
Open email with Gmail web client.
No responses can be added.
If you can, please log in before submitting a reaction.
