make email adresses and path configurable

This commit is contained in:
2014-12-08 16:11:45 +01:00
parent 78b3b86c1e
commit fc204cf8b2
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -10,8 +10,8 @@ function fappend {
}
function mailsend {
TOEMAIL="mail@mehl.mx";
FREMAIL="tech@mehl.mx";
TOEMAIL="$TOEMAIL";
FREMAIL="$FREMAIL";
SUBJECT="[MON] $1";
MSGBODY1="$2"
MSGBODY2="$3"
@@ -26,7 +26,7 @@ function mailsend {
fappend $TMP "";
fappend $TMP "$MSGBODY2";
fappend $TMP "";
cat $TMP | /usr/sbin/sendmail -t;
cat $TMP | "$SENDMAILPATH" -t;
rm $TMP;
}