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:
parent
98630c7d36
commit
bdcce01f11
7 changed files with 41 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue