Added support for protect and recovery accounts

This commit is contained in:
Antonio de la Rosa 2016-06-21 04:59:30 +02:00
parent 5c1a8855bb
commit 98e9820161
12 changed files with 366 additions and 57 deletions

View file

@ -21,12 +21,11 @@ class SendMail:
password=''
ssl=True
txt_error=''
def __init__(self):
self.smtp=smtplib.SMTP(host=self.host, port=self.port)
self.txt_error=''
def send(self, from_address, to_address, subject, message, content_type='plain', attachments=[]):
@ -167,4 +166,7 @@ class SendMail:
def quit(self):
self.smtp.quit()
def __del__(self):
self.quit()