diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2020-04-09 10:21:28 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-09 10:21:28 +1000 | 
| commit | 2fed503e5e538cbbdcdc09ff52a1ddad94218400 (patch) | |
| tree | 1d8570c4b8b3f64cf45c262235984123f7576d46 /internal/configuration/schema/notifier.go | |
| parent | aae665eff20b2b186f123d36cb701ca5c5f9c7b7 (diff) | |
[FEATURE] Customizable Email Subject (#830)
* [FEATURE] Customizable Email Subject
* allow users to optionally change email subject
* this is so they can more easily communicate the source of the email
* Update docs/configuration/notifier/smtp.md
Co-Authored-By: Amir Zarrinkafsh <nightah@me.com>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Diffstat (limited to 'internal/configuration/schema/notifier.go')
| -rw-r--r-- | internal/configuration/schema/notifier.go | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/configuration/schema/notifier.go b/internal/configuration/schema/notifier.go index ce2db6f73..4b79874db 100644 --- a/internal/configuration/schema/notifier.go +++ b/internal/configuration/schema/notifier.go @@ -10,6 +10,7 @@ type SMTPNotifierConfiguration struct {  	Username          string `mapstructure:"username"`  	Password          string `mapstructure:"password"`  	Sender            string `mapstructure:"sender"` +	Subject           string `mapstructure:"subject"`  	Host              string `mapstructure:"host"`  	Port              int    `mapstructure:"port"`  	TrustedCert       string `mapstructure:"trusted_cert"` @@ -22,3 +23,7 @@ type NotifierConfiguration struct {  	FileSystem *FileSystemNotifierConfiguration `mapstructure:"filesystem"`  	SMTP       *SMTPNotifierConfiguration       `mapstructure:"smtp"`  } + +var DefaultSMTPNotifierConfiguration = SMTPNotifierConfiguration{ +	Subject: "[Authelia] {title}", +}  | 
