sendmail/sendmail.sh
2020-04-29 10:13:02 +02:00

18 lines
230 B
Bash
Executable File

#!/bin/sh
cat << EOM | /sendmail \
-server-address=${M_SERVER_ADDRESS} \
-server-port=465 \
-user=${M_USER} \
-password=${M_PASSWORD} \
-from=${M_FROM} \
-to=${M_TO} \
-sub="${M_SUB}"
$(date +%Y-%m-%d_%H:%M)
---
${M_TEXT}
EOM