From c47afdff58a5327c11730f8df75cbc3f0be35a77 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 3 Jul 2015 14:08:18 +0800 Subject: add config options for HELO --- modules/setting/setting.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 3ce27b2e..48a5dd35 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -478,6 +478,8 @@ type Mailer struct { Host string From string User, Passwd string + DisableHelo bool + HeloHostname string SkipVerify bool UseCertificate bool CertFile, KeyFile string @@ -512,6 +514,8 @@ func newMailService() { 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(), -- cgit v1.2.3