From d593309dd959b8cf10e21111fcac515fb5bf1737 Mon Sep 17 00:00:00 2001
From: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Date: Wed, 9 Sep 2020 19:37:10 +0200
Subject: [PATCH] add to_mail env

---
 run.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/run.sh b/run.sh
index 695c4cee..1b2e51ba 100755
--- a/run.sh
+++ b/run.sh
@@ -23,10 +23,11 @@ function preview {
 #if [ ! -z "$OUTPUT" ]
 #then
 (cat << EOF
-Subject:Programm-Info-Bot
+Subject: Programm-Info-Bot
 Content-Type: text/plain; charset=UTF-8
+To: ${TO_MAIL}
 $(preview)"
 EOF
-) |  msmtp ${MSMTP_ARGUMENTS}
+) |  msmtp ${MSMTP_ARGUMENTS} ${TO_MAIL}
 
 #fi
-- 
GitLab