Files
msmtp/build/start-container.sh
vista bb96283ad5
All checks were successful
ci/woodpecker/push/build-dev Pipeline was successful
Update 'build/start-container.sh'
2023-03-17 22:38:14 +01:00

17 lines
297 B
Bash

#! /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
chmod 600 ~/.msmtprc
echo -e "Subject: ${SUBJECT}\n\n${MESSAGE}" | msmtp ${TO_ADDRESS}