🐛 Bug Report: Emails have a missing image #177

Closed
opened 2025-10-07 23:56:21 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @dougmeredith on GitHub.

Reproduction steps

Sign into a new location so that a notification email is sent to the user.

Expected behavior

There should not be missing images in the email message.

Actual Behavior

In the message body, to the left of the application name, there is a missing image.

Image

Version and Environment

v1.2.0

The image doesn't show in the Fastmail web UI nor in the Gmail web UI.

Log Output

No response

Originally created by @dougmeredith on GitHub. ### Reproduction steps Sign into a new location so that a notification email is sent to the user. ### Expected behavior There should not be missing images in the email message. ### Actual Behavior In the message body, to the left of the application name, there is a missing image. ![Image](https://github.com/user-attachments/assets/6c27d998-92ea-48a5-9648-26d964d68474) ### Version and Environment v1.2.0 The image doesn't show in the Fastmail web UI nor in the Gmail web UI. ### Log Output _No response_
OVERLORD added the bug label 2025-10-07 23:56:21 +03:00
Author
Owner

@dougmeredith commented on GitHub:

No the instance isn't Internet accessible yet. Does that matter? I was assuming this was an embedded image, not a link.

@dougmeredith commented on GitHub: No the instance isn't Internet accessible yet. Does that matter? I was assuming this was an embedded image, not a link.
Author
Owner

@bfqrst commented on GitHub:

Yeah it's a Gmail thing, I noticed that too...

@bfqrst commented on GitHub: Yeah it's a Gmail thing, I noticed that too...
Author
Owner

@stonith404 commented on GitHub:

Is you instance publicly accessible? If yes, please try to convert the logo into a PNG and upload it in the UI. It seems like Gmail doesn't support SVGs according this https://github.com/pocket-id/pocket-id/issues/240#issuecomment-2819710454.

@stonith404 commented on GitHub: Is you instance publicly accessible? If yes, please try to convert the logo into a PNG and upload it in the UI. It seems like Gmail doesn't support SVGs according this https://github.com/pocket-id/pocket-id/issues/240#issuecomment-2819710454.
Author
Owner

@dougmeredith commented on GitHub:

I just set up an Internet-accessible Pocket ID instance, and I can confirm that the image shows correctly on Fastmail. Thanks for the information.

@dougmeredith commented on GitHub: I just set up an Internet-accessible Pocket ID instance, and I can confirm that the image shows correctly on Fastmail. Thanks for the information.
Author
Owner

@stonith404 commented on GitHub:

Okay then that's the reason why the image can't be loaded in Fastmail. Fastmail proxies the images trough their servers, so if Pocket ID isn't accessible publicly the images can't be loaded.

Embedded images are supported in less email clients for example Gmail doesn't allow embedded but we would need to add the image as an attachment which is ugly in my opinion.

I don't plan to implement changes specifically for email rendering compatibility, as it's a rabbit hole, each email client handles rendering differently. However, I'm open to reviewing pull requests if someone wants to tackle improving email client compatibility.

@stonith404 commented on GitHub: Okay then that's the reason why the image can't be loaded in Fastmail. Fastmail proxies the images trough their servers, so if Pocket ID isn't accessible publicly the images can't be loaded. Embedded images are supported in less email clients for example Gmail [doesn't allow embedded](https://stackoverflow.com/a/42014708/14058016) but we would need to add the image as an attachment which is ugly in my opinion. I don't plan to implement changes specifically for email rendering compatibility, as it's a rabbit hole, each email client handles rendering differently. However, I'm open to reviewing pull requests if someone wants to tackle improving email client compatibility.
Author
Owner

@dougmeredith commented on GitHub:

I totally get not wanting to go down the rabbit hole of trying to accommodate the email rendering of various email clients. I have to wonder if the best solution is to just not include an image in the email at all, as you're going to get more and more issues raised about this, as Pocket ID adoption grows.

@dougmeredith commented on GitHub: I totally get not wanting to go down the rabbit hole of trying to accommodate the email rendering of various email clients. I have to wonder if the best solution is to just not include an image in the email at all, as you're going to get more and more issues raised about this, as Pocket ID adoption grows.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#177