Added SMTP_FROM_NAME

This commit is contained in:
Daniel García committed 2019-01-15 15:28:47 +01:00
1 parent 2fe919cc5e
commit 0e4a746eeb
3 files changed
+6 -1

No files matched your search

+1 -1
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)