8 lines
139 B
Bash
8 lines
139 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
MAILFROM=$(cat ~/.host_mail)
|
||
|
MAILTO=$(cat "$HOME/.admin_mail")
|
||
|
|
||
|
SUBJECT=$1
|
||
|
|
||
|
cat | mailx -s "$SUBJECT" -r "$MAILFROM" "$MAILTO"
|