Skip to content
Snippets Groups Projects
Commit 7b5a8b8d authored by Ben Adida's avatar Ben Adida
Browse files

feat: allow sending email directly via mailgun API as an option

parent 607e6b5c
Branches
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ psycopg2==2.8.4 ...@@ -9,6 +9,8 @@ psycopg2==2.8.4
celery==4.2.1 celery==4.2.1
django-picklefield==1.1.0 django-picklefield==1.1.0
django-anymail==8.4
python-dateutil>=2.8 python-dateutil>=2.8
unicodecsv==0.14.1 unicodecsv==0.14.1
bleach==3.3.0 bleach==3.3.0
......
...@@ -150,12 +150,20 @@ INSTALLED_APPS = ( ...@@ -150,12 +150,20 @@ INSTALLED_APPS = (
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'anymail',
## HELIOS stuff ## HELIOS stuff
'helios_auth', 'helios_auth',
'helios', 'helios',
'server_ui', 'server_ui',
) )
ANYMAIL = {
"MAILGUN_API_KEY": get_from_env('MAILGUN_API_KEY', None),
}
if ANYMAIL["MAILGUN_API_KEY"]:
EMAIL_BACKEND = "anymail.backends.mailgun.EmailBackend"
## ##
## HELIOS ## HELIOS
## ##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment