• Home
  • Raw
  • Download

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")
55 "quoteaddr", "quotedata", "SMTP"]
70 """Not connected to any SMTP server.
73 or when an attempt is made to use the SMTP instance before
78 """Base class for all exceptions that include an SMTP error code.
80 These exceptions are generated in some instances when the SMTP
95 exceptions, this sets `sender' to the string that the SMTP refused.
109 SMTP.sendmail() returns.
118 """The SMTP server didn't accept the data."""
202 class SMTP: class
203 """This class manages a connection to an SMTP or ESMTP server.
204 SMTP Objects:
205 SMTP objects have the following attributes:
221 SMTP service extensions this server supports, and their
228 method of the same name to perform each SMTP command. There is also a
288 # This makes it simpler for SMTP_SSL to use the SMTP connect code
397 # std smtp commands
399 """SMTP 'helo' command.
409 """ SMTP 'ehlo' command.
430 # To be able to communicate with as many SMTP servers as possible,
433 # 1) Else our SMTP feature parser gets confused.
459 """Does the server support a given SMTP service extension?"""
463 """SMTP 'help' command.
469 """SMTP 'rset' command -- resets session."""
473 """SMTP 'noop' command -- doesn't do anything :>"""
477 """SMTP 'mail' command -- begins mail xfer session."""
485 """SMTP 'rcpt' command -- indicates 1 recipient for this mail."""
493 """SMTP 'DATA' command -- sends message data to server.
518 """SMTP 'verify' command -- checks for address validity."""
525 """SMTP 'expn' command -- expands a mailing list."""
549 """Log in on an SMTP server that requires authentication.
586 raise SMTPException("SMTP AUTH extension not supported by server.")
627 """Puts the connection to the SMTP server into TLS mode.
632 If the server supports TLS, this will encrypt the rest of the SMTP
634 the identity of the SMTP server and client can be checked. This,
654 # the server, such as the list of SMTP service extensions,
688 recipient that was refused. Each entry contains a tuple of the SMTP
707 >>> s=smtplib.SMTP("localhost")
758 """Close the connection to the SMTP server."""
772 """Terminate the SMTP session."""
783 class SMTP_SSL(SMTP):
784 """ This is a subclass derived from SMTP that connects over an SSL
787 host) is used. If port is omitted, the standard SMTP-over-SSL port
789 SMTP class. keyfile and certfile are also optional - they can contain
802 SMTP.__init__(self, host, port, local_hostname, timeout)
819 class LMTP(SMTP):
823 on the standard SMTP client. It's common to use Unix sockets for
826 the SMTP class. To specify a Unix socket, you must use an absolute
829 Authentication is supported, using the regular SMTP mechanism. When
837 SMTP.__init__(self, host, port, local_hostname)
842 return SMTP.connect(self, host, port)
881 server = SMTP('localhost')