|
@@ -16,6 +16,20 @@ class Message:
|
|
|
attachment: list
|
|
|
|
|
|
|
|
|
+class SMTP_365:
|
|
|
+ def __init__(self, host='', port=0, local_hostname=None,
|
|
|
+ timeout=30,
|
|
|
+ source_address=None):
|
|
|
+ pass
|
|
|
+
|
|
|
+ def login(self, user, password, *, initial_response_ok=True):
|
|
|
+ pass
|
|
|
+
|
|
|
+ def sendmail(self, from_addr, to_addrs, msg, mail_options=(),
|
|
|
+ rcpt_options=()):
|
|
|
+ pass
|
|
|
+
|
|
|
+
|
|
|
class mail:
|
|
|
connected = False
|
|
|
|
|
@@ -49,7 +63,7 @@ class mail:
|
|
|
return self
|
|
|
|
|
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
|
- if self.mailserver.connected:
|
|
|
+ if self.connected:
|
|
|
self.mailserver.quit()
|
|
|
|
|
|
def send(self, mailto, subject, html, attachment=None):
|