https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/core/mail/backends/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/core/mail/backends/smtp.pyc
�
r�\c@s�dZddlZddlZddlZddlmZddlmZddlm	Z	ddl
mZdefd��YZdS(	sSMTP email backend class.i����N(tsettings(tBaseEmailBackend(tDNS_NAME(tsanitize_addresstEmailBackendcBsMeZdZddddded�Zd�Zd�Zd�Zd�Z	RS(s=
    A wrapper that manages the SMTP network connection.
    cKs�tt|�jd|�|p%tj|_|p7tj|_|dkrXtj	|_
n	||_
|dkr|tj|_n	||_|dkr�tj
|_n	||_d|_tj�|_dS(Nt
fail_silently(tsuperRt__init__Rt
EMAIL_HOSTthostt
EMAIL_PORTtporttNonetEMAIL_HOST_USERtusernametEMAIL_HOST_PASSWORDtpasswordt
EMAIL_USE_TLStuse_tlst
connectiont	threadingtRLockt_lock(tselfR	RRRRRtkwargs((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pyRs				cCs�|jr
tSy�tj|j|jdtj��|_|jrj|jj	�|jj
�|jj	�n|jr�|jr�|jj
|j|j�ntSWn|js��q�nXdS(s�
        Ensures we have a connection to the email server. Returns whether or
        not a new connection was required (True or False).
        tlocal_hostnameN(RtFalsetsmtplibtSMTPR	RRtget_fqdnRtehlotstarttlsRRtlogintTrueR(R((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pytopen$s		

	cCs||jdkrdSzXy|jj�Wn@tjtjfk
rS|jj�n|jrcdS�nXWdd|_XdS(s*Closes the connection to the email server.N(	RRtquittssltSSLErrorRtSMTPServerDisconnectedtcloseR(R((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pyR'<s	cCs�|s
dS|j�j|j�}|js-dSd}x0|D](}|j|�}|r:|d7}q:q:W|ry|j�nWdQX|S(so
        Sends one or more EmailMessage objects and returns the number of email
        messages sent.
        Nii(RR"Rt_sendR'(Rtemail_messagestnew_conn_createdtnum_senttmessagetsent((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pyt
send_messagesOs
	
cCs�|j�stSt|j|j�}g|j�D]}t||j�^q2}|j�}y |jj|||j��Wn$t	j
k
r�|js��ntSXtS(s-A helper method that does the actual sending.(
t
recipientsRRt
from_emailtencodingR,Rtsendmailtas_bytesRt
SMTPExceptionRR!(Rt
email_messageR0taddrR/R,((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pyR(es( 	N(
t__name__t
__module__t__doc__RRRR"R'R.R((((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pyRs			(
R9RR$Rtdjango.confRtdjango.core.mail.backends.baseRtdjango.core.mail.utilsRtdjango.core.mail.messageRR(((s@/tmp/pip-install-XxeQeY/django/django/core/mail/backends/smtp.pyt<module>s

https://t.me/AnonymousX5 - 2025