send email using php wrapper

This commit is contained in:
Serghey Rodin 2013-10-08 00:27:38 +03:00
parent 8f03ce5e43
commit de68a6bc8f
9 changed files with 9 additions and 46 deletions

View file

@ -53,11 +53,7 @@ else
subj="$user → backup failed"
email=$(grep CONTACT $VESTA/data/users/admin/user.conf | cut -f 2 -d \')
fi
if [ -e "$VESTA/web/inc/mail-wrapper.php" ]; then
send_mail="$VESTA/web/inc/mail-wrapper.php"
else
send_mail=$(which mail)
fi
send_mail="$VESTA/web/inc/mail-wrapper.php"
# Check load average
la=$(cat /proc/loadavg | cut -f 1 -d ' ' | cut -f 1 -d '.')