Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline comments, signature HTML template: Add hints for inline images #3

Open
andreashaerter opened this issue Apr 1, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@andreashaerter
Copy link
Contributor

It is not obvious how to create usable data-URLs for HTML signatures in Roundcube. An example as addition for inline comments / documentation in config.inc.php.dist for $config['identity_from_directory_signature_template_html'] or the README would be nice.

@andreashaerter andreashaerter added the documentation Improvements or additions to documentation label Apr 1, 2024
@andreashaerter andreashaerter self-assigned this Apr 2, 2024
@andreashaerter
Copy link
Contributor Author

Easiest way is a base64 data URL. Sadly, Gmail does not support this (all other important clients and Web UIs do): https://www.caniemail.com/features/image-base64

However, most compatible way would be an attachment with CID like described at https://stackoverflow.com/a/9110164. Roundcube supports this and does it automatically when using the web UI by passing a stored image URL, converting it into an CID / attachment when creating an email. Triggering the mechanism via template is not a real problem (a certain blog: URL does so) but how to prepare the image globally from a plugin config value?

andreashaerter added a commit that referenced this issue Apr 28, 2024
Examples for CID (or Content-ID) images are still missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant