Added SMTP_FROM_NAME

This commit is contained in:
Daniel García
2019-01-13 15:24:46 +01:00
parent 2fe919cc5e
commit 0e4a746eeb
3 changed files with 6 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ pub fn send_invite_confirmed(address: &str, org_name: &str, config: &MailConfig)
fn send_email(address: &str, subject: &str, body: &str, config: &MailConfig) -> EmptyResult {
let email = EmailBuilder::new()
.to(address)
.from((config.smtp_from.clone(), "Bitwarden-rs"))
.from((config.smtp_from.clone(), config.smtp_from_name.clone()))
.subject(subject)
.header(("Content-Type", "text/html"))
.body(body)