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.
23# The username is secret too: several providers (Postmark, Mailgun, SES) use the
24# API token itself as the SMTP username, so it must never be printed.
25EMAIL_HOST_USER: Secret[str] = ""
26EMAIL_HOST_PASSWORD: Secret[str] = ""
27EMAIL_USE_TLS: bool = True
28EMAIL_USE_SSL: bool = False
29EMAIL_SSL_CERTFILE: str | None = None
30EMAIL_SSL_KEYFILE: str | None = None
31EMAIL_TIMEOUT: int | None = None