Your IP : 3.22.130.228
a
R�fj� � @ sZ d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
mZ g d�ZdZdZdZdZd Zd
Ze�dej�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd� de�Z$d d!� Z%d"d#� Z&d$d%� Z'd&d'� Z(d(d)� Z)zddl*Z*W n e+�y� d*Z,Y n0 d+Z,G d,d-� d-�Z-e,�r�G d.d/� d/e-�Z.e�/d/� d0Z0G d1d2� d2e-�Z1e2d3k�rVd4d5� Z3e3d6�Z4e3d7��5d8�Z6e7d9� d:Z8ej9�:� Z;e;�s�qe8e; Z8�q�e7d;e<e8� � e-d<�Z=e=�>d=� e=�?e4e6e8� 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�SMTPNotSupportedError�SMTPServerDisconnected�SMTPResponseException�SMTPSenderRefused�SMTPRecipientsRefused�
SMTPDataError�SMTPConnectError�
SMTPHeloError�SMTPAuthenticationError� quoteaddr� quotedata�SMTP� i� �
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 �,/opt/alt/python39/lib64/python3.9/smtplib.pyr H s r c @ s e Zd ZdZdS )r z�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.
Nr r r r r r K 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.
Nr r r r r r R s r 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__c s zSMTPResponseException.__init__N�r r r r r! r r r r r Z s r 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"