diff --git a/machine_poweroff.sh b/machine_poweroff.sh index 50c9dde..ea4a00b 100755 --- a/machine_poweroff.sh +++ b/machine_poweroff.sh @@ -359,8 +359,8 @@ else subject="Power OFF System $(hostname -f).." msg=" Going to power off system '$(hostname -f)' .." - echo -e "To:${_to_address}\n${content_type}\nSubject:$subject\n\n${msg}\n" \ - | /usr/sbin/sendmail -F "Webservice Monitor" -f $from_address $_to_address + echo -e "To:${to_address}\n${content_type}\nSubject:$subject\n\n${msg}\n" \ + | /usr/sbin/sendmail -F "Webservice Monitor" -f $from_address $to_address fi