Skip to main content

Prerequisites

Before you start, you’ll need:

Guide

1

Install

Get the django-anymail package with Resend support.
2

Configure

Add Anymail to your Django settings.
settings.py
3

Send email using HTML

The easiest way to send an email is by using the html_message parameter.
views.py
4

Send email using a template

For more complex emails, you can use Django’s template system.First, create an HTML template at templates/emails/welcome.html:
templates/emails/welcome.html
Then render and send the template:
views.py

Examples

Django App

Full Django web application

Basic Send

Basic email sending

Attachments

Send emails with file attachments

Templates

Send emails using Resend hosted templates

Scheduling

Schedule emails for future delivery

Audiences

Manage contacts and audiences

Domains

Create and manage sending domains

Inbound Webhooks

Receive and process inbound emails

Double Opt-in

Double opt-in subscription flow