From 01a5f67398e0fa32f739534feba75d4c3a904c3e Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 5 Jan 2016 20:35:36 -0600 Subject: PLT-1607 adding more debugging info for email and push notifications --- utils/mail.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/mail.go') 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} -- cgit v1.2.3-1-g7c22