https://github.com/resend/resend-django-smtp-example
https://github.com/resend/resend-django-smtp-example
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/resend/resend-django-smtp-example
- Owner: resend
- License: mit
- Created: 2023-08-02T14:38:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-19T13:26:53.000Z (6 months ago)
- Last Synced: 2026-05-27T19:35:41.568Z (21 days ago)
- Language: Python
- Size: 12.7 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Django and SMTP
This example shows how to use Resend SMTP server with Django.
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
* Install `virtualenv` by running `pip install virtualenv`
## Instructions
1. Create and activate a new virtual env with:
```sh
virtualenv venv
source venv/bin/activate
```
2. Install dependencies:
```sh
pip install -r requirements.txt
```
3. Set your RESEND_API_KEY environment variable by running:
```sh
export RESEND_API_KEY="re_123456789"
```
3. Execute the following command:
```sh
python manage.py runserver
```
4. Nagivate to `http://127.0.0.1:8000/`
## License
MIT License