Add FromName to SmtpSettings struct

Updates the `SmtpSettings` struct to include a value for setting the
name of the email sender.
This commit is contained in:
Jacob Bednarz 2017-02-15 07:45:28 +11:00
parent 7dc6b69c8b
commit 90cbfacacf
No known key found for this signature in database
GPG Key ID: 5BDAF4B30FB432FB

View File

@ -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")