Skip to content

Django email backend for Scaleway's transactional email service

Notifications You must be signed in to change notification settings

julianwachholz/django-scaleway-email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Scaleway Email

A small Django package that allows you to use Scaleway's transactional email API.

Requirements

To use this backend, you need an account with Scaleway and follow their setup guide for the transactional email service.

You can then create an IAM Application and generate a new API key for it. Ensure the application has the TransactionalEmailEmailFullAccess permission.

Installation

  1. Install the package with your package manager of choice:

    pip install django-scaleway-email
  2. Set your EMAIL_BACKEND and configure your secrets:

    EMAIL_BACKEND = "django_scaleway_email.backend.EmailBackend"
    SCALEWAY_EMAIL_PROJECT_ID = "your-project-id"
    SCALEWAY_EMAIL_API_KEY = "your-api-key"
  3. Done! You can now use django.core.mail.send_mail etc. to send emails!

Limitations

Scaleway imposes a few limitations on emails. Here's a short summary:

  • Max. 3 recipients per email
  • Max. 2 attachments
  • Max. total email size is 2 MB
  • Only PDF, images and plaintext attachments allowed

About

Django email backend for Scaleway's transactional email service

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages