deps: move to django-anymail :crossed-fingers:

This commit is contained in:
Matthew Ryan Dillon 2021-01-09 19:54:31 -07:00
parent e4f92d6d48
commit 43ef67c8d7
2 changed files with 6 additions and 6 deletions

View file

@ -35,11 +35,13 @@ MEDIA_URL = 'https://s3.amazonaws.com/%s/' % AWS_STORAGE_BUCKET_NAME
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
ANYMAIL = {
MAILGUN_API_KEY: env('DJANGO_MAILGUN_API_KEY')
MAILGUN_SENDER_DOMAIN: env('DJANGO_MAILGUN_SERVER_NAME')
}
DEFAULT_FROM_EMAIL = env('DJANGO_DEFAULT_FROM_EMAIL',
default='CCDB Admin <noreply@ccdb.info>')
EMAIL_BACKEND = 'django_mailgun.MailgunBackend'
MAILGUN_ACCESS_KEY = env('DJANGO_MAILGUN_API_KEY')
MAILGUN_SERVER_NAME = env('DJANGO_MAILGUN_SERVER_NAME')
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
EMAIL_SUBJECT_PREFIX = env("DJANGO_EMAIL_SUBJECT_PREFIX", default='[ccdb] ')
SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)

View file

@ -7,6 +7,4 @@ gunicorn==19.7.1
# Static and Media Storage
boto==2.48.0
django-storages-redux==1.3.3
# Mailgun Support
django-mailgun>=0.9.1
django-anymail[mailgun]