Skip to content

Commit 50d8a14

Browse files
committed
Make email backend and from email required
1 parent 4d1d3ab commit 50d8a14

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plain-mail/plain/mail/default_settings.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
# The default is to use the SMTP backend.
33
# Third-party backends can be specified by providing a Python path
44
# to a module that defines an EmailBackend class.
5-
EMAIL_BACKEND: str = "plain.mail.backends.smtp.EmailBackend"
5+
EMAIL_BACKEND: str
6+
7+
# Default email address to use for various automated correspondence from
8+
# the site managers.
9+
DEFAULT_FROM_EMAIL: str
610

711
# Host for sending email.
812
EMAIL_HOST: str = "localhost"
@@ -21,7 +25,3 @@
2125
EMAIL_SSL_CERTFILE: str = None
2226
EMAIL_SSL_KEYFILE: str = None
2327
EMAIL_TIMEOUT: int = None
24-
25-
# Default email address to use for various automated correspondence from
26-
# the site managers.
27-
DEFAULT_FROM_EMAIL: str = "webmaster@localhost"

0 commit comments

Comments
 (0)