zweite Empfängeradresse (announce-Liste) hinzu

This commit is contained in:
Thomas Lotze 2020-06-09 09:44:38 +02:00
parent 5f37e2b291
commit 3cd7481074

View file

@ -3,7 +3,7 @@
## Configuration ## Configuration
from="office@krautspace.de" from="office@krautspace.de"
to="hackspace-jena@lstsrv.org" to=("hackspace-jena@lstsrv.org" "krautspace-announce@lstsrv.org")
subject="Einladung zum Plenum" subject="Einladung zum Plenum"
body_file=email_text # Use PROSEDATE for dd.mm.YYYY and URLDATE for YYYmmdd body_file=email_text # Use PROSEDATE for dd.mm.YYYY and URLDATE for YYYmmdd
@ -26,4 +26,4 @@ fi
prose_date=$(date -d "+$next_thursday_offset days" +%d.%m.%Y) prose_date=$(date -d "+$next_thursday_offset days" +%d.%m.%Y)
url_date=$(date -d "+$next_thursday_offset days" +%Y%m%d) url_date=$(date -d "+$next_thursday_offset days" +%Y%m%d)
cat "$body_file" | sed -e "s/PROSEDATE/$prose_date/g" | sed -e "s/URLDATE/$url_date/g" | mail -s "$subject" -r "$from" "$to" cat "$body_file" | sed -e "s/PROSEDATE/$prose_date/g" | sed -e "s/URLDATE/$url_date/g" | mail -s "$subject" -r "$from" "${to[@]}"