adding logic to test-ping site and send email if unreachable