mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 04:51:56 +00:00
E-mail through linux command with UseCommand configuration field
This commit is contained in:
2
iris.go
2
iris.go
@@ -176,7 +176,7 @@ func (s *Iris) initWebsocketServer() {
|
||||
func (s *Iris) initMailService() {
|
||||
if s.mailService == nil {
|
||||
// enable mail sender service if configs are valid
|
||||
if s.config.Mail.Host != "" && s.config.Mail.Username != "" && s.config.Mail.Password != "" {
|
||||
if s.config.Mail.IsValid() {
|
||||
s.mailService = mail.New(s.config.Mail)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user