diff --git a/build/start-container.sh b/build/start-container.sh new file mode 100644 index 0000000..81c6271 --- /dev/null +++ b/build/start-container.sh @@ -0,0 +1,15 @@ +#! /usr/bin/env sh + +echo "defaults +auth on +tls on + +account default +host ${SMTP_HOST} +port ${SMTP_PORT} +tls_starttls ${SMTP_STARTTLS} +from ${SMTP_FROM} +user ${SMTP_USER} +password ${SMTP_PASSWORD}" > ~/.msmtprc + +echo -e "Subject: ${SUBJECT}\n\n${MESSAGE}" | msmtp ${TO_ADDRESS} \ No newline at end of file