Lines Matching refs: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")
55 "quoteaddr", "quotedata", "SMTP"]
69 """Not connected to any SMTP server.
72 or when an attempt is made to use the SMTP instance before
77 """Base class for all exceptions that include an SMTP error code.
79 These exceptions are generated in some instances when the SMTP
94 exceptions, this sets `sender' to the string that the SMTP refused.
108 SMTP.sendmail() returns.
117 """The SMTP server didn't accept the data."""
197 class SMTP:
198 """This class manages a connection to an SMTP or ESMTP server.
199 SMTP Objects:
200 SMTP objects have the following attributes:
216 SMTP service extensions this server supports, and their
223 method of the same name to perform each SMTP command. There is also a
281 # This makes it simpler for SMTP_SSL to use the SMTP connect code
388 # std smtp commands
390 """SMTP 'helo' command.
400 """ SMTP 'ehlo' command.
421 # To be able to communicate with as many SMTP servers as possible,
424 # 1) Else our SMTP feature parser gets confused.
450 """Does the server support a given SMTP service extension?"""
454 """SMTP 'help' command.
460 """SMTP 'rset' command -- resets session."""
464 """SMTP 'noop' command -- doesn't do anything :>"""
468 """SMTP 'mail' command -- begins mail xfer session."""
476 """SMTP 'rcpt' command -- indicates 1 recipient for this mail."""
484 """SMTP 'DATA' command -- sends message data to server.
509 """SMTP 'verify' command -- checks for address validity."""
516 """SMTP 'expn' command -- expands a mailing list."""
540 """Log in on an SMTP server that requires authentication.
577 raise SMTPException("SMTP AUTH extension not supported by server.")
618 """Puts the connection to the SMTP server into TLS mode.
623 If the server supports TLS, this will encrypt the rest of the SMTP
625 the identity of the SMTP server and client can be checked. This,
645 # the server, such as the list of SMTP service extensions,
674 recipient that was refused. Each entry contains a tuple of the SMTP
693 >>> s=smtplib.SMTP("localhost")
744 """Close the connection to the SMTP server."""
754 """Terminate the SMTP session."""
761 class SMTP_SSL(SMTP):
762 """ This is a subclass derived from SMTP that connects over an SSL encrypted
765 omitted, the standard SMTP-over-SSL port (465) is used. keyfile and certfile
777 SMTP.__init__(self, host, port, local_hostname, timeout)
794 class LMTP(SMTP):
798 on the standard SMTP client. It's common to use Unix sockets for LMTP,
803 Authentication is supported, using the regular SMTP mechanism. When
811 SMTP.__init__(self, host, port, local_hostname)
816 return SMTP.connect(self, host, port)
855 server = SMTP('localhost')