vaultwarden icon indicating copy to clipboard operation
vaultwarden copied to clipboard

attach images in email

Open stefan0xC opened this issue 2 years ago • 3 comments

Since many email clients don't load external images I was wondering if we should include the images as attachment instead.

Some drawbacks to this change:

  • Embedding the images as attachments makes the mails around ~5kb bigger.
  • If you change the templates vaultwarden would still attach the images to the mail.

stefan0xC avatar Oct 02 '22 01:10 stefan0xC

It might be an option to add a new config option, SMTP_EMBED_IMAGES or something like that and have it dynamically embed or provide the external link.

Okay, I will look into that.

stefan0xC avatar Oct 02 '22 07:10 stefan0xC

Put the images inthere as true svgs if possible, they are code so will render in email even without a request from the user

Op zo 2 okt. 2022 om 03:04 schreef Stefan Melmuk @.***>

Since many email clients don't load external images I was wondering if we should include the images as attachment instead.

Some drawbacks to this change:

  • Embedding the images as attachments makes the mails around ~5kb bigger.
  • If you want too change the templates the mail would still attach the images.

You can view, comment on, or merge this pull request online at:

https://github.com/dani-garcia/vaultwarden/pull/2784 Commit Summary

File Changes

(3 files https://github.com/dani-garcia/vaultwarden/pull/2784/files)

Patch Links:

  • https://github.com/dani-garcia/vaultwarden/pull/2784.patch
  • https://github.com/dani-garcia/vaultwarden/pull/2784.diff

— Reply to this email directly, view it on GitHub https://github.com/dani-garcia/vaultwarden/pull/2784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHPNV26RV46JIQAOBBDFRZTWBDNRFANCNFSM6AAAAAAQ2VYB7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mikepattyn avatar Oct 05 '22 18:10 mikepattyn

Put the images inthere as true svgs if possible, they are code so will render in email even without a request from the user

That probably isn't working for all clients, and probably suffers from the same issues as using a base64 image src, that some client's just block that by default without a way to show it at all.

CID is old, but still works.

BlackDex avatar Oct 05 '22 18:10 BlackDex