email: optional logo image in the header

A configurable logo URL renders as an image beside the brand name in the
email header (falling back to the brand text when unset). Email clients
need a hosted image, so it takes a URL rather than an inline asset.
This commit is contained in:
Jean Chevronnet 2026-07-12 16:36:06 +00:00
parent 98630c7d36
commit bdcce01f11
No known key found for this signature in database
7 changed files with 41 additions and 9 deletions

View file

@ -27,6 +27,10 @@ pub struct Email {
// Accent colour (any CSS colour) for the email template.
#[serde(default = "default_accent")]
pub accent: String,
// Optional logo image URL shown in the email header (must be a hosted image;
// email clients don't render inline SVG or data URIs).
#[serde(default)]
pub logo: String,
}
fn default_brand() -> String {