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
|
|
@ -548,7 +548,7 @@ impl Engine {
|
|||
if ok && !self.db.is_verified(account) {
|
||||
if let (Some(addr), RegReply::NickServ { agent, uid, .. }) = (addr, &reply) {
|
||||
let code = self.db.issue_code(account, db::CodeKind::Confirm);
|
||||
let mail = crate::email::confirm(self.db.email_brand(), self.db.email_accent(), account, &code);
|
||||
let mail = crate::email::confirm(self.db.email_brand(), self.db.email_accent(), self.db.email_logo(), account, &code);
|
||||
out.push(NetAction::SendEmail { to: addr, subject: mail.subject, text: mail.text, html: Some(mail.html) });
|
||||
out.push(NetAction::Notice { from: agent.clone(), to: uid.clone(), text: "A confirmation code has been emailed to you. Confirm with \x02CONFIRM <code>\x02.".to_string() });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue