diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-18 23:00:48 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-18 23:00:48 +0300 |
| commit | 3658638e3bb3edb0f266c65fe0e42a1cd53a5f83 (patch) | |
| tree | 53735108cc161bec79ebafaecc12803d636e1f3a /notify.go | |
| parent | 7ea496151c0336414c9563613d7c1ce87e28f4ba (diff) | |
use nagiosCode and other refactorings
Diffstat (limited to 'notify.go')
| -rw-r--r-- | notify.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) } |
