浏览代码

Add `FromName` to SmtpSettings struct

Updates the `SmtpSettings` struct to include a value for setting the
name of the email sender.
Jacob Bednarz 9 年之前
父节点
当前提交
90cbfacacf
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      pkg/setting/setting_smtp.go

+ 2 - 0
pkg/setting/setting_smtp.go

@@ -8,6 +8,7 @@ type SmtpSettings struct {
 	CertFile    string
 	KeyFile     string
 	FromAddress string
+	FromName    string
 	SkipVerify  bool
 
 	SendWelcomeEmailOnSignUp bool
@@ -23,6 +24,7 @@ func readSmtpSettings() {
 	Smtp.CertFile = sec.Key("cert_file").String()
 	Smtp.KeyFile = sec.Key("key_file").String()
 	Smtp.FromAddress = sec.Key("from_address").String()
+	Smtp.FromName = sec.Key("from_name").String()
 	Smtp.SkipVerify = sec.Key("skip_verify").MustBool(false)
 
 	emails := Cfg.Section("emails")