diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mail.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/mail.go b/utils/mail.go index ece4105a6..6625060de 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -98,12 +98,12 @@ func SendMail(to, subject, body string) *model.AppError { } func SendMailUsingConfig(to, subject, body string, config *model.Config) *model.AppError { - l4g.Debug("sending mail to " + to + " with subject of '" + subject + "'") - if !config.EmailSettings.SendEmailNotifications || len(config.EmailSettings.SMTPServer) == 0 { return nil } + l4g.Debug("sending mail to " + to + " with subject of '" + subject + "'") + fromMail := mail.Address{config.EmailSettings.FeedbackName, config.EmailSettings.FeedbackEmail} toMail := mail.Address{"", to} |