From 9185de325fdbf6cae01c8ee8df51a8472aa14f6e Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Fri, 19 Jan 2018 17:41:34 +0100
Subject: [PATCH] Fix mail targets for logging.

The "From" entry was missing resulting in emails not being sent.

Refers to #3
---
 AutoTx/AutoTx.cs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/AutoTx/AutoTx.cs b/AutoTx/AutoTx.cs
index 2c6b400..b2defa9 100644
--- a/AutoTx/AutoTx.cs
+++ b/AutoTx/AutoTx.cs
@@ -117,6 +117,7 @@ namespace AutoTx
                 var mailTargetFatal = new MailTarget {
                     SmtpServer = _config.SmtpHost,
                     SmtpPort = _config.SmtpPort,
+                    From = _config.EmailFrom,
                     To = _config.AdminEmailAdress,
                     Name = "mailfatal",
                 };
@@ -127,6 +128,7 @@ namespace AutoTx
                     var mailTargetError = new MailTarget {
                         SmtpServer = _config.SmtpHost,
                         SmtpPort = _config.SmtpPort,
+                        From = _config.EmailFrom,
                         To = _config.AdminDebugEmailAdress,
                         Name = "mailerror",
                     };
-- 
GitLab