Lines Matching full:smtp
3 '''SMTP/ESMTP client class.
5 This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
6 Authentication) and RFC 2487 (Secure SMTP over TLS).
10 Please remember, when doing ESMTP, that the names of the SMTP service
17 >>> s=smtplib.SMTP("localhost")
60 "quoteaddr", "quotedata", "SMTP"]
76 """The command or option is not supported by the SMTP server.
83 """Not connected to any SMTP server.
86 or when an attempt is made to use the SMTP instance before
91 """Base class for all exceptions that include an SMTP error code.
93 These exceptions are generated in some instances when the SMTP
108 exceptions, this sets `sender' to the string that the SMTP refused.
122 SMTP.sendmail() returns.
131 """The SMTP server didn't accept the data."""
190 class SMTP: class
191 """This class manages a connection to an SMTP or ESMTP server.
192 SMTP Objects:
193 SMTP objects have the following attributes:
209 SMTP service extensions this server supports, and their
216 method of the same name to perform each SMTP command. There is also a
306 # This makes it simpler for SMTP_SSL to use the SMTP connect code
434 # std smtp commands
436 """SMTP 'helo' command.
446 """ SMTP 'ehlo' command.
468 # To be able to communicate with as many SMTP servers as possible,
471 # 1) Else our SMTP feature parser gets confused.
497 """Does the server support a given SMTP service extension?"""
501 """SMTP 'help' command.
507 """SMTP 'rset' command -- resets session."""
524 """SMTP 'noop' command -- doesn't do anything :>"""
528 """SMTP 'mail' command -- begins mail xfer session.
549 """SMTP 'rcpt' command -- indicates 1 recipient for this mail."""
557 """SMTP 'DATA' command -- sends message data to server.
586 """SMTP 'verify' command -- checks for address validity."""
593 """SMTP 'expn' command -- expands a mailing list."""
687 """Log in on an SMTP server that requires authentication.
717 "SMTP AUTH extension not supported by server.")
753 """Puts the connection to the SMTP server into TLS mode.
758 If the server supports TLS, this will encrypt the rest of the SMTP
760 the identity of the SMTP server and client can be checked. This,
795 # the server, such as the list of SMTP service extensions,
833 recipient that was refused. Each entry contains a tuple of the SMTP
855 >>> s=smtplib.SMTP("localhost")
990 """Close the connection to the SMTP server."""
1003 """Terminate the SMTP session."""
1014 class SMTP_SSL(SMTP):
1015 """ This is a subclass derived from SMTP that connects over an SSL
1018 host) is used. If port is omitted, the standard SMTP-over-SSL port
1020 as they do in the SMTP class. keyfile and certfile are also optional -
1050 SMTP.__init__(self, host, port, local_hostname, timeout,
1068 class LMTP(SMTP):
1072 on the standard SMTP client. It's common to use Unix sockets for
1075 meaning as they do in the SMTP class. To specify a Unix socket,
1078 Authentication is supported, using the regular SMTP mechanism. When
1137 server = SMTP('localhost')