A small Django package that allows you to use Scaleway's transactional email API.
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.
-
Install the package with your package manager of choice:
pip install django-scaleway-email
-
Set your
EMAIL_BACKENDand configure your secrets:EMAIL_BACKEND = "django_scaleway_email.backend.EmailBackend" SCALEWAY_EMAIL_PROJECT_ID = "your-project-id" SCALEWAY_EMAIL_API_KEY = "your-api-key"
-
Done! You can now use
django.core.mail.send_mailetc. to send emails!
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