1
0
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:
Makis Maropoulos
2016-06-02 23:29:29 +03:00
parent b58c16113a
commit 679b707751
3 changed files with 9 additions and 4 deletions

View File

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