mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-17 19:21:50 +02:00
Compare commits
2 commits
743a2cbffe
...
afc83a4489
Author | SHA1 | Date | |
---|---|---|---|
![]() |
afc83a4489 | ||
![]() |
d3a9ef0242 |
2 changed files with 5 additions and 1 deletions
|
@ -22,4 +22,7 @@ def send_order_confirmation_mail(order):
|
||||||
from_email = settings.DEFAULT_FROM_EMAIL
|
from_email = settings.DEFAULT_FROM_EMAIL
|
||||||
to = order.author.email
|
to = order.author.email
|
||||||
|
|
||||||
mail.send_mail(subject, plain_message, from_email, [to], html_message=html_message)
|
if settings.EMAIL_ENABLE:
|
||||||
|
mail.send_mail(
|
||||||
|
subject, plain_message, from_email, [to], html_message=html_message
|
||||||
|
)
|
||||||
|
|
|
@ -174,6 +174,7 @@ if SENTRY_DSN:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Email settings
|
# Email settings
|
||||||
|
EMAIL_ENABLE = True
|
||||||
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
|
||||||
EMAIL_HOST = os.getenv("EMAIL_HOST")
|
EMAIL_HOST = os.getenv("EMAIL_HOST")
|
||||||
EMAIL_PORT = int(os.getenv("EMAIL_PORT", "587"))
|
EMAIL_PORT = int(os.getenv("EMAIL_PORT", "587"))
|
||||||
|
|
Loading…
Reference in a new issue