Update smtp.py
This commit is contained in:
parent
6a3b06f371
commit
96889b02a9
|
@ -49,7 +49,7 @@ class SMTPAlert(BaseAlert):
|
||||||
server.ehlo()
|
server.ehlo()
|
||||||
server.login(self.user, self.password)
|
server.login(self.user, self.password)
|
||||||
server.sendmail(self.user, self.to, msg.as_string())
|
server.sendmail(self.user, self.to, msg.as_string())
|
||||||
logger.info('Email Sent')
|
logger.info('Email sent')
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
logger.error(ex)
|
logger.error(ex)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue