Configurable database email, local Mailgun sandbox
This commit is contained in:
parent
f19f501684
commit
a50c40e739
@ -44,7 +44,7 @@ class BaseForm(LoginRequiredMixin, CreateView):
|
|||||||
reverse('admin:map_casestudy_change', args=[self.object.id])
|
reverse('admin:map_casestudy_change', args=[self.object.id])
|
||||||
),
|
),
|
||||||
'noreply@ojuso.org',
|
'noreply@ojuso.org',
|
||||||
['database@ojuso.org'],
|
[settings.DATABASE_EMAIL],
|
||||||
fail_silently=False,
|
fail_silently=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -118,10 +118,12 @@ EMAIL_USE_TLS = bool(int(os.getenv('EMAIL_USE_TLS', False)))
|
|||||||
EMAIL_SUBJECT_PREFIX = "Ojuso Platform"
|
EMAIL_SUBJECT_PREFIX = "Ojuso Platform"
|
||||||
SERVER_EMAIL = os.getenv('SERVER_EMAIL', 'root@localhost')
|
SERVER_EMAIL = os.getenv('SERVER_EMAIL', 'root@localhost')
|
||||||
|
|
||||||
|
DATABASE_EMAIL = os.getenv('DATABASE_EMAIL', 'autonomic-coop@posteo.net')
|
||||||
|
|
||||||
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
|
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
|
||||||
ANYMAIL = {
|
ANYMAIL = {
|
||||||
"MAILGUN_API_KEY": os.getenv("MAILGUN_API_KEY", ""),
|
"MAILGUN_API_KEY": os.getenv("MAILGUN_API_KEY", "key-e82f77942478d2892b4faf51fc88ce45"),
|
||||||
"MAILGUN_SENDER_DOMAIN": os.getenv("MAILGUN_SENDER_DOMAIN", ""),
|
"MAILGUN_SENDER_DOMAIN": os.getenv("MAILGUN_SENDER_DOMAIN", "sandbox35a5ee2a4dfc4f3aaf76d4672e4497ae.mailgun.org"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user