mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
19 lines
510 B
Python
19 lines
510 B
Python
import smtplib
|
|
import threading
|
|
from typing import Optional, Union
|
|
|
|
from django.core.mail.backends.base import BaseEmailBackend
|
|
|
|
class EmailBackend(BaseEmailBackend):
|
|
host: str = ...
|
|
port: int = ...
|
|
username: str = ...
|
|
password: str = ...
|
|
use_tls: bool = ...
|
|
use_ssl: bool = ...
|
|
timeout: Optional[int] = ...
|
|
ssl_keyfile: Optional[str] = ...
|
|
ssl_certfile: Optional[str] = ...
|
|
connection: Union[smtplib.SMTP_SSL, smtplib.SMTP, None] = ...
|
|
_lock: threading.RLock = ...
|