Lines Matching defs:server
69 """Not connected to any SMTP server.
71 This exception is raised when the server unexpectedly disconnects,
73 connecting it to a server.
80 server returns an error code. The error code is stored in the
117 """The SMTP server didn't accept the data."""
123 """The server refused our HELO reply."""
128 Most probably the server didn't accept the username/password
198 """This class manages a connection to an SMTP or ESMTP server.
202 This is the message given by the server in response to the
206 This is the message given by the server in response to the
211 server supports ESMTP.
214 This is a dictionary, which, if the server supports ESMTP,
216 SMTP service extensions this server supports, and their
275 messages sent to and received from the server.
317 """Send `str' to the server."""
325 raise SMTPServerDisconnected('Server not connected')
330 """Send a command to the server."""
338 """Get a reply from the server.
342 - server response code (e.g. '250', or such, if all goes well)
345 - server response string corresponding to response code (multiline
412 raise SMTPServerDisconnected("Server not connected")
450 """Does the server support a given SMTP service extension?"""
455 Returns help text from server."""
484 """SMTP 'DATA' command -- sends message data to server.
530 SMTPHeloError The server didn't reply properly to
540 """Log in on an SMTP server that requires authentication.
553 SMTPHeloError The server didn't reply properly to
555 SMTPAuthenticationError The server didn't accept the username/
577 raise SMTPException("SMTP AUTH extension not supported by server.")
579 # Authentication methods the server supports:
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,
631 SMTPHeloError The server didn't reply properly to
636 raise SMTPException("STARTTLS extension not supported by server.")
645 # the server, such as the list of SMTP service extensions,
668 method tries ESMTP EHLO first. If the server does ESMTP, message size
675 error code and the accompanying error message sent by the server.
679 SMTPHeloError The server didn't reply properly to
681 SMTPRecipientsRefused The server rejected ALL recipients
683 SMTPSenderRefused The server didn't accept the from_addr.
684 SMTPDataError The server replied with an unexpected
732 # the server refused all our recipients
744 """Close the connection to the SMTP server."""
800 host:port server. To specify a Unix socket, you must use an absolute
855 server = SMTP('localhost')
856 server.set_debuglevel(1)
857 server.sendmail(fromaddr, toaddrs, msg)
858 server.quit()