server-scripts/mail.sh

5 lines
108 B
Bash
Executable File

#!/bin/bash
MAILTO=$(cat "$HOME/.admin_mail")
SUBJECT=$1
cat | mailx -s "$SUBJECT" -r "$MAILFROM" "$MAILTO"