func (s *Server) appendSMTPService() { c := s.config.SMTP l := s.LogService.NewLogger("[smtp] ", log.LstdFlags) srv := smtp.NewService(c, l) s.TaskMaster.SMTPService = srv s.SetDynamicService("smtp", srv) s.AppendService("smtp", srv) }
func (s *Server) appendSMTPService(c smtp.Config) { if c.Enabled { l := s.LogService.NewLogger("[smtp] ", log.LstdFlags) srv := smtp.NewService(c, l) s.TaskMaster.SMTPService = srv s.Services = append(s.Services, srv) } }