diff --git a/main.go b/main.go index 40fc2d6..08b596a 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func main() { var mailNotificator *email.Notificator if cfg.Notifications.Email != nil { - mailNotificator := email.NewNotificator( + mailNotificator = email.NewNotificator( cfg.Notifications.Email.SMTP, cfg.Notifications.Email.Login, cfg.Notifications.Email.Password,