This commit is contained in:
petrucci4prez 2017-06-02 00:12:05 -04:00
parent ccdaa68474
commit 4c2dd985a4
1 changed files with 3 additions and 2 deletions

View File

@ -41,13 +41,14 @@ def _sendToGmail(username, passwd, recipiantList, subject, body, server='smtp.gm
def monthlyTest():
subject = 'harrison4hegemon - automated monthly test'
body = 'this is an automated message - please do not reply\n\nin the future this may have useful information'
sendEmail(gmail['username'], gmail['passwd'], gmail['recipientList'], subject, body)
_sendToGmail(gmail['username'], gmail['passwd'], gmail['recipientList'], subject, body)
logger.debug('Sending monthly test to email list')
def intruderAlert():
pass
subject = 'harrison4hegemon - intruder detected'
body = 'intruder detected - alarm was tripped on ' + time.strftime("%H:%M:%S - %d/%m/%Y")
sendEmail(gmail['username'], gmail['passwd'], gmail['recipientList'], subject, body)
_sendToGmail(gmail['username'], gmail['passwd'], gmail['recipientList'], subject, body)
logger.info('intruder detected')
logger.debug('Sending intruder alert to email list')