

def notifyemail(self, server):
    message = mail.EmailMessage()
    message.sender = server.email
    message.subject = ('%s is down' % server.serverdomain)
    message.to = server.email
    message.body = ('HTTP response code %s' % server.responsecode)
    message.send()
    server.notifylimiter = True
    server.put()

dataset/ETHPy150Open infincia/AEServmon/checkservers.py CheckServers.notifyemail/original