From 4ec13f93897112f1494129626bd59655aab3e844 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 30 Apr 2019 11:58:24 +0200 Subject: [PATCH] Send system health report to a specific address instead of the admin Refers to #20 --- ATxService/Email.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ATxService/Email.cs b/ATxService/Email.cs index b7289df..a53b41f 100644 --- a/ATxService/Email.cs +++ b/ATxService/Email.cs @@ -254,8 +254,7 @@ namespace ATxService report += $"\nPrevious system health report notification was sent {elapsedHuman}.\n"; _status.LastStartupNotification = DateTime.Now; - // TODO: recipients for the health report should be configurable, defaulting to admin - return SendAdminEmail(report, "system health report"); + return SendEmail(_config.HealthReportEmailAddress, "system health report", report); } } } \ No newline at end of file -- GitLab