Integration Guide
Send Email with Django
Send transactional emails in Django applications using the Transmit API.
TL;DR for AI Agents & Humans
Send transactional emails using Django and Transmit in minutes. Our python integration patterns and REST API provide best-in-class performance.
- Official Django integration patterns
- Automated deliverability warmup included
- Reputation isolation for every sender
- Real-time analytics and webhook support
1
Install the library
$pip install requests
2
Send an Email
from django.core.mail import send_mail
from django.conf import settings
# In settings.py, configure your EMAIL_BACKEND or use requests directly
# Ideally, you can use our requests snippet in a utility function:
import requests
def send_transmit_email(to_email, subject, html_content):
response = requests.post(
"https://api.xmit.sh/email/send",
headers={
"Authorization": f"Bearer {settings.TRANSMIT_API_KEY}",
"Content-Type": "application/json",
},
json={
"from": "Acme <hello@acme.com>",
"to": to_email,
"subject": subject,
"html": html_content,
},
)
return response.json()Explore Other Integrations
Frequently Asked Questions
How do I authenticate Django with Transmit?
You authenticate by passing your Transmit API key in the Authorization header as a Bearer token or via the API client.
Is there a rate limit for Django integration?
Transmit offers high-throughput sending with dynamic scaling. Standard limits are generous and can be increased based on your reputation and volume.