File: //usr/lib/python3.7/__pycache__/smtplib.cpython-37.pyc
B
îÇ{a°¬ ã @ sn d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
mZ dddddd d
ddd
ddgZdZdZdZdZdZe dej¡ZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZ G dd
„ d
eƒZ!G dd„ deƒZ"G d d„ deƒZ#d!d
„ Z$d"d#„ Z%d$d„ Z&d%d&„ Z'd'd(„ Z(yddl)Z)W n e*k
r” d)Z+Y nX d*Z+G d+d„ dƒZ,e+rÈG d,d-„ d-e,ƒZ-e .d-¡ d.Z/G d/d0„ d0e,ƒZ0e1d1krjd2d3„ Z2e2d4ƒZ3e2d5ƒ 4d6¡Z5e6d7ƒ d8Z7x ej8 9¡ Z:e:s$P e7e: Z7qW e6d9e;e7ƒ ƒ e,d:ƒZ<e< =d;¡ e< >e3e5e7¡ e< ?¡ dS )<a SMTP/ESMTP client class.
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
Authentication) and RFC 2487 (Secure SMTP over TLS).
Notes:
Please remember, when doing ESMTP, that the names of the SMTP service
extensions are NOT the same thing as the option keywords for the RCPT
and MAIL commands!
Example:
>>> import smtplib
>>> s=smtplib.SMTP("localhost")
>>> print(s.help())
This is Sendmail version 8.8.4
Topics:
HELO EHLO MAIL RCPT DATA
RSET NOOP QUIT HELP VRFY
EXPN VERB ETRN DSN
For more info use "HELP <topic>".
To report bugs in the implementation send email to
sendmail-bugs@sendmail.org.
For local information send email to Postmaster at your site.
End of HELP info
>>> s.putcmd("vrfy","someone@here")
>>> s.getreply()
(250, "Somebody OverHere <somebody@here.my.org>")
>>> s.quit()
é N)Úbody_encodeÚ
SMTPExceptionÚSMTPServerDisconnectedÚSMTPResponseExceptionÚSMTPSenderRefusedÚSMTPRecipientsRefusedÚ
SMTPDataErrorÚSMTPConnectErrorÚ
SMTPHeloErrorÚSMTPAuthenticationErrorÚ quoteaddrÚ quotedataÚSMTPé iÑ z
s
i z auth=(.*)c @ s e Zd ZdZdS )r z4Base class for all exceptions raised by this module.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r r ú/usr/lib/python3.7/smtplib.pyr G s c @ s e Zd ZdZdS )ÚSMTPNotSupportedErrorzÌThe command or option is not supported by the SMTP server.
This exception is raised when an attempt is made to run a command or a
command with an option which is not supported by the server.
N)r r r r r r r r r J s r c @ s e Zd ZdZdS )r zÌNot connected to any SMTP server.
This exception is raised when the server unexpectedly disconnects,
or when an attempt is made to use the SMTP instance before
connecting it to a server.
N)r r r r r r r r r Q s c @ s e Zd ZdZdd„ ZdS )r a2 Base class for all exceptions that include an SMTP error code.
These exceptions are generated in some instances when the SMTP
server returns an error code. The error code is stored in the
`smtp_code' attribute of the error, and the `smtp_error' attribute
is set to the error message.
c C s || _ || _||f| _d S )N)Ú smtp_codeÚ
smtp_errorÚargs)ÚselfÚcodeÚmsgr r r Ú__init__b s zSMTPResponseException.__init__N)r r r r r r r r r r Y s c @ s e Zd ZdZdd„ ZdS )r z«Sender address refused.
In addition to the attributes set by on all SMTPResponseException
exceptions, this sets `sender' to the string that the SMTP refused.
c C s"