18 lines
230 B
Bash
Executable File
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
|