server-scripts/mail.sh

5 lines
108 B
Bash
Raw Normal View History

2020-02-02 06:47:47 +01:00
#!/bin/bash
MAILTO=$(cat "$HOME/.admin_mail")
SUBJECT=$1
2020-02-02 06:49:12 +01:00
cat | mailx -s "$SUBJECT" -r "$MAILFROM" "$MAILTO"