move mailer to mailer.sh

This commit is contained in:
2024-03-22 07:18:06 +01:00
parent b852d13475
commit 204162a747
2 changed files with 15 additions and 14 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@
mailer.sh

14
mailer.sh Normal file
View 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
}