Format: application/octet-stream
1 from typing import Any
2
3 class SMTPException(Exception): ...
4 class SMTPServerDisconnected(SMTPException): ...
5
6 class SMTPResponseException(SMTPException):
7 smtp_code: Any
8 smtp_error: Any
9 args: Any
10 def __init__(self, code, msg) -> None: ...
11
12 class SMTPSenderRefused(SMTPResponseException):
13 smtp_code: Any
14 smtp_error: Any
15 sender: Any
16 args: Any
17 def __init__(self, code, msg, sender) -> None: ...
18
19 class SMTPRecipientsRefused(SMTPException):
20 recipients: Any
21 args: Any
22 def __init__(self, recipients) -> None: ...
23
24 class SMTPDataError(SMTPResponseException): ...
25 class SMTPConnectError(SMTPResponseException): ...
26 class SMTPHeloError(SMTPResponseException): ...
27 class SMTPAuthenticationError(SMTPResponseException): ...
28
29 def quoteaddr(addr): ...
30 def quotedata(data): ...
31
32 class SSLFakeFile:
33 sslobj: Any
34 def __init__(self, sslobj) -> None: ...
35 def readline(self, size=...): ...
36 def close(self): ...
37
38 class SMTP:
39 debuglevel: Any
40 file: Any
41 helo_resp: Any
42 ehlo_msg: Any
43 ehlo_resp: Any
44 does_esmtp: Any
45 default_port: Any
46 timeout: Any
47 esmtp_features: Any
48 local_hostname: Any
49 def __init__(self, host: str = ..., port: int = ..., local_hostname=..., timeout=...) -> None: ...
50 def set_debuglevel(self, debuglevel): ...
51 sock: Any
52 def connect(self, host=..., port=...): ...
53 def send(self, str): ...
54 def putcmd(self, cmd, args=...): ...
55 def getreply(self): ...
56 def docmd(self, cmd, args=...): ...
57 def helo(self, name=...): ...
58 def ehlo(self, name=...): ...
59 def has_extn(self, opt): ...
60 def help(self, args=...): ...
61 def rset(self): ...
62 def noop(self): ...
63 def mail(self, sender, options=...): ...
64 def rcpt(self, recip, options=...): ...
65 def data(self, msg): ...
66 def verify(self, address): ...
67 vrfy: Any
68 def expn(self, address): ...
69 def ehlo_or_helo_if_needed(self): ...
70 def login(self, user, password): ...
71 def starttls(self, keyfile=..., certfile=...): ...
72 def sendmail(self, from_addr, to_addrs, msg, mail_options=..., rcpt_options=...): ...
73 def close(self): ...
74 def quit(self): ...
75
76 class SMTP_SSL(SMTP):
77 default_port: Any
78 keyfile: Any
79 certfile: Any
80 def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=...) -> None: ...
81
82 class LMTP(SMTP):
83 ehlo_msg: Any
84 def __init__(self, host=..., port=..., local_hostname=...) -> None: ...
85 sock: Any
86 def connect(self, host=..., port=...): ...
87