Send emails from Python with our official SDK. Perfect for Django, Flask, FastAPI, and any Python application.
Everything you need to send emails from Python
Async and sync APIs
Type hints for IDE support
Django/Flask integrations
Automatic rate limiting
Comprehensive error handling
Get up and running in minutes with this code example
from unosend import Unosend
import os
unosend = Unosend(api_key=os.environ.get("UNOSEND_API_KEY"))
# Send a simple email
response = unosend.emails.send(
from_email="hello@yourdomain.com",
to="user@example.com",
subject="Hello from Python",
html="<p>Hello World!</p>"
)
# Async usage
import asyncio
from unosend import AsyncUnosend
async def send_email():
async_unosend = AsyncUnosend(api_key=os.environ.get("UNOSEND_API_KEY"))
response = await async_unosend.emails.send(
from_email="hello@yourdomain.com",
to="user@example.com",
subject="Async Email",
html="<p>Sent asynchronously!</p>"
)
return response
asyncio.run(send_email())Follow these steps to integrate Unosend with Python
Install the SDK: pip install unosend
Set UNOSEND_API_KEY environment variable
Import Unosend client
Call emails.send() with your email data
Native Python idioms
Async/await support for high performance
Works with any Python web framework
Type hints for better IDE experience
More framework integrations you might like
Send transactional emails from your Next.js application using Unosend. Works with App Router, API routes, and Server Actions.
Build beautiful email templates with React components and send them with Unosend. Use JSX to create responsive HTML emails.
Send emails from Node.js with our official SDK. Support for Express, Fastify, NestJS, and any Node.js application.
Start sending emails from Python in under 5 minutes. Free tier includes 5,000 emails/month.