this sample script write python to check what's site or ip down and send email for you
there is 3 file (ping_alert_v3.py - site.xlsx - userpass.txt)
1- ping_alert_v3.py: this python script and have a code and don't have a smtp server credentials
2- userpass.txt this file to enter your smtp credentials (email and password)
3- site.xlsx add all your list of site