v0.150.0
 1from plain.runtime import Secret
 2
 3# The email backend to use. For possible shortcuts see plain.email.
 4# The default is to use the SMTP backend.
 5# Third-party backends can be specified by providing a Python path
 6# to a module that defines an EmailBackend class.
 7EMAIL_BACKEND: str
 8
 9EMAIL_DEFAULT_FROM: str
10
11EMAIL_DEFAULT_REPLY_TO: list[str] | None = None
12
13# Host for sending email.
14EMAIL_HOST: str = "localhost"
15
16# Port for sending email.
17EMAIL_PORT: int = 587
18
19# Whether to send SMTP 'Date' header in the local time zone or in UTC.
20EMAIL_USE_LOCALTIME: bool = False
21
22# Optional SMTP authentication information for EMAIL_HOST.
23EMAIL_HOST_USER: str = ""
24EMAIL_HOST_PASSWORD: Secret[str] = ""
25EMAIL_USE_TLS: bool = True
26EMAIL_USE_SSL: bool = False
27EMAIL_SSL_CERTFILE: str | None = None
28EMAIL_SSL_KEYFILE: str | None = None
29EMAIL_TIMEOUT: int | None = None