| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/core/mail/backends/__pycache__/ |
Upload File : |
�
�|�e� � �n � d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZ G d� de� � ZdS ) zSMTP email backend class.� N)�settings)�BaseEmailBackend��sanitize_address)�DNS_NAMEc �X � � e Zd ZdZ d
� fd� Zed� � � Zd� Zd� Zd� Z d � Z
� xZS )�EmailBackendz=
A wrapper that manages the SMTP network connection.
NFc �6 �� t � � � |�� � |pt j | _ |pt j | _ |�t j n|| _ |�t j n|| _
|�t j n|| _ |�t j
n|| _ |�t j n|| _ | �t j n| | _ |
�t j n|
| _ | j r| j rt+ d� � �d | _ t/ j � � | _ d S )N)�
fail_silentlyz^EMAIL_USE_TLS/EMAIL_USE_SSL are mutually exclusive, so only set one of those settings to True.)�super�__init__r �
EMAIL_HOST�host�
EMAIL_PORT�port�EMAIL_HOST_USER�username�EMAIL_HOST_PASSWORD�password�
EMAIL_USE_TLS�use_tls�
EMAIL_USE_SSL�use_ssl�
EMAIL_TIMEOUT�timeout�EMAIL_SSL_KEYFILE�ssl_keyfile�EMAIL_SSL_CERTFILE�ssl_certfile�
ValueError�
connection� threading�RLock�_lock)
�selfr r r r r r r r r r �kwargs� __class__s
��@/usr/lib/python3/dist-packages/django/core/mail/backends/smtp.pyr
zEmailBackend.__init__ s �� � �����}��5�5�5��/�H�/�� ��/�H�/�� �4<�4D��0�0�(��
�8@�8H��4�4�h��
�18��x�-�-�g���18��x�-�-�g���18��x�-�-�g���9D�9L�8�5�5�R]���;G�;O�H�7�7�Ua����<� 2�D�L� 2��1�2� 2�
2� ����_�&�&��
�
�
� c �@ � | j rt j nt j S )N)r �smtplib�SMTP_SSL�SMTP�r% s r( �connection_classzEmailBackend.connection_class% s � �#'�<�A�w���W�\�Ar) c �� � | j rdS dt j � � i}| j �
| j |d<