send-mail refactor (#7885)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
1ccf093803
Коммит
bbb301b7de
@@ -103,10 +103,6 @@ func TestConnection(config *model.Config) {
|
||||
defer c.Close()
|
||||
}
|
||||
|
||||
func SendMail(to, subject, htmlBody string) *model.AppError {
|
||||
return SendMailUsingConfig(to, subject, htmlBody, Cfg)
|
||||
}
|
||||
|
||||
func SendMailUsingConfig(to, subject, htmlBody string, config *model.Config) *model.AppError {
|
||||
if !config.EmailSettings.SendEmailNotifications || len(config.EmailSettings.SMTPServer) == 0 {
|
||||
return nil
|
||||
|
||||
Ссылка в новой задаче
Block a user