Skip to main content

SESY Django Integration

Django email backend for the SESY email service.

Installation

uv add django-sesy

Or with pip:

pip install django-sesy

The sesy client library is installed as a dependency.

Configuration

# settings.py
EMAIL_BACKEND = 'django_sesy.SesyEmailBackend'
SESY_API_KEY = 'your-api-key'
SESY_BASE_URL = 'https://sesy.email'  # Optional

Usage

Standard Django Email

from django.core.mail import send_mail

send_mail(
    'Subject',
    'Plain text body',
    'from@example.com',
    ['to@example.com'],
)

HTML Email

from django.core.mail import EmailMultiAlternatives

message = EmailMultiAlternatives(
    subject='Welcome',
    body='Plain text version',
    from_email='from@example.com',
    to=['to@example.com'],
)
message.attach_alternative('<h1>HTML version</h1>', 'text/html')
message.send()

Template Email

from django_sesy import SesyTemplateMessage

message = SesyTemplateMessage(
    template='welcome',
    to=['user@example.com'],
    data={'name': 'John'},
    tags={'campaign': 'onboarding'},
)
message.send()

Custom Tags

Add custom tags via headers:

from django.core.mail import EmailMessage

message = EmailMessage(
    subject='Tagged Email',
    body='Body',
    to=['to@example.com'],
    headers={
        'X-SESY-Tag-Campaign': 'newsletter',
        'X-SESY-Idempotency-Key': 'unique-123',
    },
)
message.send()

Metadata

Release files for django-sesy 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sesy 0.1.0
File Size Uploaded Provenance
django_sesy-0.1.0.tar.gz 5.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sesy 0.1.0
File Interpreter ABI Platform
django_sesy-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / django_sesy-0.1.0.tar.gz

Download URL django_sesy-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
54ee55cb06501e5da512f38ec30c3c15b0483cdd56f8c7ee973cd8bd714fecdf
BLAKE2b-256 checksum
How to use checksums
c76f22b8e147b625edfc4c002f950b2191fa04284dff0075308040d17416a163
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / django_sesy-0.1.0-py3-none-any.whl

Download URL django_sesy-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88fd83a85e1cc2905b3b7980e2daa441087bbb120a2e3f39291e9c0c3e8274fd
BLAKE2b-256 checksum
How to use checksums
2c24b9b02ff3d4c5b53d8eaf05e4db7532808b8628c0a9c1444f7b7702b64cdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Security for django-sesy 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_sesy-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page