summaryrefslogtreecommitdiff
path: root/notify.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-18 23:00:48 +0300
committerPaul Buetow <paul@buetow.org>2023-04-18 23:00:48 +0300
commit3658638e3bb3edb0f266c65fe0e42a1cd53a5f83 (patch)
tree53735108cc161bec79ebafaecc12803d636e1f3a /notify.go
parent7ea496151c0336414c9563613d7c1ce87e28f4ba (diff)
use nagiosCode and other refactorings
Diffstat (limited to 'notify.go')
-rw-r--r--notify.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/notify.go b/notify.go
index 7b423cd..e546549 100644
--- a/notify.go
+++ b/notify.go
@@ -23,6 +23,7 @@ func notify(config config, subject, body string) error {
message := header + "\r\n" + body
log.Println("Using SMTP server", config.SMTPServer)
+
return smtp.SendMail(config.SMTPServer, nil, config.EmailFrom,
[]string{config.EmailTo}, []byte(message))
}