diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-01-06 09:18:52 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-01-06 09:18:52 -0500 |
commit | 0eb145218edb37d911cc5ec135b0006f866a44b2 (patch) | |
tree | 682f089b1298ae8108071ffa9fad2e135c132ed7 /utils/mail.go | |
parent | fcb87ca42ff18e5fbf562b43390f4f99607289b1 (diff) | |
parent | a0e3823e9cbe295591aa0a0946eafa42a94a6050 (diff) | |
download | chat-0eb145218edb37d911cc5ec135b0006f866a44b2.tar.gz chat-0eb145218edb37d911cc5ec135b0006f866a44b2.tar.bz2 chat-0eb145218edb37d911cc5ec135b0006f866a44b2.zip |
Merge pull request #1816 from mattermost/PLT-1607
PLT-1607 adding more debugging info for email and push notifications
Diffstat (limited to 'utils/mail.go')
-rw-r--r-- | utils/mail.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/mail.go b/utils/mail.go index 07a79eeb2..6625060de 100644 --- a/utils/mail.go +++ b/utils/mail.go @@ -98,11 +98,12 @@ func SendMail(to, subject, body string) *model.AppError { } func SendMailUsingConfig(to, subject, body string, config *model.Config) *model.AppError { - 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} |