invoicing/invoice-system-common/generate-email

23 lines
348 B
Text
Raw Permalink Normal View History

2024-09-13 14:38:24 +01:00
#!/bin/bash
set -euo pipefail
source env.sh.inc
if ! cat email-template/headers.txt; then
echo "To: $RECIPIENTS"
echo "Cc: $RECIPIENTS_CC"
fi
echo "Subject: Invoice for $COVERED_PERIOD_STR"
echo # end of headers, start of body
cat << EOF
$GREETING
Please see the timesheet and invoice attached.
The payment link:
$(cat pay.url)
Thanks!
EOF