A Django app to send emails
Project description
Django Email Service is a Django app that allows you to send emails using mailjet (for now) in a convenient way.
Quick start
Add “django_email” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'django_email', ]
Set the following variables in your settings file:
MAILJET_API_KEY = 'mailjet-api-key' MAILJET_SECRET_KEY = 'mailjet-secret-key' DEFAULT_FROM_EMAIL = 'default-from-email' DEFAULT_FROM_NAME = 'default-from-name'
Include the polls URLconf in your project urls.py like this:
path('email/', include('django_email.urls')),
Run python manage.py migrate to create the django_email models.
Start the development server and visit http://127.0.0.1:8000/admin/ to view email log (you’ll need the Admin app enabled).
Visit http://127.0.0.1:8000/django_email/ to see the email logs along with its events.
Notes
By default the celery messages go into the default celery queue which is named as celery. You can change this be routing messages from default queue to some other queue. https://stackoverflow.com/questions/10707287/django-celery-routing-problems
You need to configure a message broker in your application like RabbitMQ or Redis where messages are stored and consumed by celery workers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.