Quickstart¶
This document will guide you through the installation process and initial setup of the django-nitro-mailer .
Requirements¶
Before you begin, make sure your environment meets the following requirements:
- Python 3.12+
- Django 5.2+
Installing the Package¶
Install the package using pip:
Usage¶
- Add
django_nitro_mailerto yourINSTALLED_APPSin yoursettings.py:
-
Run
python manage.py migrateto create the necessary tables. -
Change the
EMAIL_BACKENDsetting in yoursettings.pyto use the desired backend:
Database Backend: Store emails in the database and send them asynchronously. Requires sending a cron job or some other scheduled task to send the emails.
Sync Backend: Send emails synchronously. Does not provide the reliability that the database backend provides, but still provides the logging and throttling features.