move mailer to mailer.sh
This commit is contained in:
14
madmail.sh
14
madmail.sh
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
mailer () {
|
||||
if ! [[ -z "$3" ]]; then
|
||||
mailfrom="From: $3 <christian@betz.cc>"
|
||||
fi
|
||||
if ! [[ -z "$4" ]]; then
|
||||
mailto="$4"
|
||||
elif [[ -z "$mailto" ]]; then
|
||||
mailto="christian@betz.cc"
|
||||
fi
|
||||
|
||||
echo -e "$1" | mailx -s "$2" --append="$mailfrom" $mailto &>/dev/null
|
||||
}
|
||||
1
madmail.sh
Symbolic link
1
madmail.sh
Symbolic link
@@ -0,0 +1 @@
|
||||
mailer.sh
|
||||
14
mailer.sh
Normal file
14
mailer.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
mailer () {
|
||||
if ! [[ -z "$3" ]]; then
|
||||
mailfrom="From: $3 <christian@betz.cc>"
|
||||
fi
|
||||
if ! [[ -z "$4" ]]; then
|
||||
mailto="$4"
|
||||
elif [[ -z "$mailto" ]]; then
|
||||
mailto="christian@betz.cc"
|
||||
fi
|
||||
|
||||
echo -e "$1" | mailx -s "$2" --append="$mailfrom" $mailto &>/dev/null
|
||||
}
|
||||
Reference in New Issue
Block a user