Integrations / Django

Sendersy + Django

Django + Sendersy: send transactional via plain requests or a drop-in EMAIL_BACKEND.

1. Install

bash
pip install requests

2. Environment variables

bash
export SENDERSY_API_KEY=sk_live_...

3. Send an email

py
# emails.py
import os
import requests

def send_welcome_email(to_email: str, name: str):
    response = requests.post(
        "https://api.sendersy.com/v1/emails",
        headers={
            "Authorization": f"Bearer {os.environ['SENDERSY_API_KEY']}",
            "Content-Type": "application/json",
        },
        json={
            "from": "Sendersy <noreply@yourcompany.com>",
            "to": [to_email],
            "subject": f"Welcome, {name}!",
            "html": f"<p>Thanks for signing up, <strong>{name}</strong>!</p>",
            "tags": [{"name": "category", "value": "welcome"}],
        },
    )
    response.raise_for_status()
    return response.json()

Ready to start?

Get your API key in 30 seconds.

Sign up