diff options
author | Unknwon <u@gogs.io> | 2017-02-23 12:16:10 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-27 22:46:42 -0500 |
commit | c7a8051a711d4a87aff5895e27e56a74fc653023 (patch) | |
tree | dce655ff8c714865d583c4a54da7e7fc896f2258 /modules/setting/setting.go | |
parent | a47553b7aab71914328cb3f9ca329468c441bfed (diff) |
mailer: make text/html as default format
Change config option from '[mailer] ENABLE_HTML_ALTERNATIVE' to '[mailer] USE_PLAIN_TEXT'
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 34884370..0f750554 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -751,18 +751,18 @@ func newSessionService() { // Mailer represents mail service. type Mailer struct { - QueueLength int - Name string - Host string - From string - FromEmail string - User, Passwd string - DisableHelo bool - HeloHostname string - SkipVerify bool - UseCertificate bool - CertFile, KeyFile string - EnableHTMLAlternative bool + QueueLength int + Subject string + Host string + From string + FromEmail string + User, Passwd string + DisableHelo bool + HeloHostname string + SkipVerify bool + UseCertificate bool + CertFile, KeyFile string + UsePlainText bool } var ( @@ -777,18 +777,18 @@ func newMailService() { } MailService = &Mailer{ - QueueLength: sec.Key("SEND_BUFFER_LEN").MustInt(100), - Name: sec.Key("NAME").MustString(AppName), - Host: sec.Key("HOST").String(), - User: sec.Key("USER").String(), - Passwd: sec.Key("PASSWD").String(), - DisableHelo: sec.Key("DISABLE_HELO").MustBool(), - HeloHostname: sec.Key("HELO_HOSTNAME").String(), - SkipVerify: sec.Key("SKIP_VERIFY").MustBool(), - UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(), - CertFile: sec.Key("CERT_FILE").String(), - KeyFile: sec.Key("KEY_FILE").String(), - EnableHTMLAlternative: sec.Key("ENABLE_HTML_ALTERNATIVE").MustBool(), + QueueLength: sec.Key("SEND_BUFFER_LEN").MustInt(100), + Subject: sec.Key("SUBJECT").MustString(AppName), + Host: sec.Key("HOST").String(), + User: sec.Key("USER").String(), + Passwd: sec.Key("PASSWD").String(), + DisableHelo: sec.Key("DISABLE_HELO").MustBool(), + HeloHostname: sec.Key("HELO_HOSTNAME").String(), + SkipVerify: sec.Key("SKIP_VERIFY").MustBool(), + UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(), + CertFile: sec.Key("CERT_FILE").String(), + KeyFile: sec.Key("KEY_FILE").String(), + UsePlainText: sec.Key("USE_PLAIN_TEXT").MustBool(), } MailService.From = sec.Key("FROM").MustString(MailService.User) |