Added support for protect and recovery accounts
This commit is contained in:
parent
5c1a8855bb
commit
98e9820161
12 changed files with 366 additions and 57 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue