SMTP
Django with SMTP
Learn how to integrate Django with Resend SMTP.
Prerequisites
To get the most out of this guide, you’ll need to:
- Create an API key
- Verify your domain
- Install
virtualenv
by runningpip install virtualenv
1. Setup your environment
Create and activate your new virtualenv.
Install dependencies.
Set your RESEND_API_KEY
environment variable by running.
2. Send email using Django’s SMTP EmailMessage
Set the necessary attributes in your settings.py
file.
Use Django’s get_connection
and EmailMessage
3. Try it yourself
Django SMTP Example
See the full source code.
Was this page helpful?