
    LȂi                         S r  " S S5      rg)zBase email backend class.c                   @    \ rS rSrSrSS jrS rS rS rS r	S r
S	rg
)BaseEmailBackend   a  
Base class for email backend implementations.

Subclasses must at least overwrite send_messages().

open() and close() can be called indirectly by using a backend object as a
context manager:

   with backend as connection:
       # do something with connection
       pass
c                     Xl         g Nfail_silently)selfr   kwargss      OD:\sksbv-state-backend\venv\Lib\site-packages\django/core/mail/backends/base.py__init__BaseEmailBackend.__init__   s    *    c                     g)a  
Open a network connection.

This method can be overwritten by backend implementations to
open a network connection.

It's up to the backend implementation to track the status of
a network connection if it's needed by the backend.

This method can be called by applications to force a single
network connection to be used when sending mails. See the
send_messages() method of the SMTP backend for a reference
implementation.

The default implementation does nothing.
N r	   s    r   openBaseEmailBackend.open   s    " 	r   c                     g)zClose a network connection.Nr   r   s    r   closeBaseEmailBackend.close(   s    r   c                 f     U R                  5         U $ ! [         a    U R                  5         e f = fr   )r   	Exceptionr   r   s    r   	__enter__BaseEmailBackend.__enter__,   s4    	IIK   	JJL	s    0c                 $    U R                  5         g r   )r   )r	   exc_type	exc_value	tracebacks       r   __exit__BaseEmailBackend.__exit__4   s    

r   c                     [        S5      e)zU
Send one or more EmailMessage objects and return the number of email
messages sent.
zCsubclasses of BaseEmailBackend must override send_messages() method)NotImplementedError)r	   email_messagess     r   send_messagesBaseEmailBackend.send_messages7   s    
 "Q
 	
r   r   N)F)__name__
__module____qualname____firstlineno____doc__r   r   r   r   r   r$   __static_attributes__r   r   r   r   r      s%    +&
r   r   N)r*   r   r   r   r   <module>r,      s    :
 :
r   