server-scripts/mail.sh

8 lines
139 B
Bash
Raw Normal View History

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