From 4c2dd985a4e864b2717c4bc2d81223bc1cb222d6 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Fri, 2 Jun 2017 00:12:05 -0400 Subject: [PATCH] fix bug --- gmail.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gmail.py b/gmail.py index d3f7494..ed72bb5 100644 --- a/gmail.py +++ b/gmail.py @@ -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')