Skip to main content

It's a Django module to store and send email with AWS SES.

Project description

Django SES Plus

Django module to store and send email with AWS SES. It's an extension for django-ses package.

Releases

You can see the releases here.

Installation

  1. pip install django-ses-plus.

  2. Add django_ses_plus to the INSTALLED_APPS in the settings file.

  3. Set up Django SES Plus email backend.

EMAIL_BACKEND = 'django_ses_plus.backends.SESPlusBackend'

Please refer to django-ses package documentation for detailed configuration of AWS SES.

  1. Configure settings.
DJANGO_SES_PLUS_SETTINGS = {
    "SEND_EMAIL": True,  # True by default.
    "CELERY_TASK_RETRY_KWARGS": {
        'max_retries': 15, 
        'countdown': 60
    }
}
  1. python manage.py migrate

  2. (Optional) Add SendEmailMixin to your auth user model.

from django_ses_plus.models import SendEmailMixin

class AuthUser(SendEmailMixin,...):
    ....
    
user.send_email(subject, template_path, context, from_email=None, language=None)
# OR
from django_ses_plus.tasks import send_email
send_email.delay(subject, to_email, html_message, from_email=None, message=None, recipient_id=None)

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-ses-plus, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size django-ses-plus-0.2.2.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page