Add optional from email config
This commit is contained in:
parent
05ec42e03b
commit
0771de2d4b
5
mail.sh
5
mail.sh
@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MAILTO=$(cat "$HOME/.admin_mail")
|
MAILTO=$(cat "$HOME/.admin_mail")
|
||||||
|
|
||||||
|
if [ -f "$HOME/.host_mail" ]; then
|
||||||
|
MAILFROM=$(cat "$HOME/.host_mail")
|
||||||
|
fi
|
||||||
|
|
||||||
SUBJECT=$1
|
SUBJECT=$1
|
||||||
cat | mailx -s "$SUBJECT" -r "$MAILFROM" "$MAILTO"
|
cat | mailx -s "$SUBJECT" -r "$MAILFROM" "$MAILTO"
|
||||||
|
Loading…
Reference in New Issue
Block a user