make email adresses and path configurable
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
TOEMAIL=destination@email.com
|
||||
FREMAIL=sender@email.com
|
||||
SENDMAILPATH=/usr/sbin/sendmail
|
||||
|
||||
NAME[0]=shortname1
|
||||
HOST[0]=example.com
|
||||
|
||||
|
||||
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user