MailerHive is a robust Django-based API designed for efficient email management and distribution. It facilitates sending emails to both single and multiple recipients seamlessly. With features for SMTP configuration and error handling, MailerHive streamlines email communication and management tasks with ease and reliability.
- ✓ SMTP Configuration Management : Configure SMTP settings via API endpoints.
- ✓ Email Composition : Compose and send emails with single or multiple recipients.
- ✓ Error Handling : Robust error handling for various email-related scenarios.
Follow these instructions to set up and use MailerHive.
Before you begin, ensure you have the following installed:
- ✓ Python (3.x recommended)
- ✓ Django
- ✓ Django Rest Framework
-
Clone the repository :
git clone https://github.com/Shashi2632/MailerHive.git
-
Navigate to the project directory :
cd mailerhive
-
Install dependencies :
pip install -r requirements.txt
-
Set up your database in Django (
settings.py
):Ensure your database settings are configured correctly in the
settings.py
file of your Django project. -
Run migrations:
python manage.py migrate
-
Configure SMTP Settings: Use the
/api/smtp/settings
endpoint to configure SMTP settings. -
Compose and Send Emails: Use the
/api/send-mail
endpoint to compose and send emails.
- Parameters:
subject
: Subject of the email.message
: Body/content of the email.recipientType
: Type of recipient (single
ormultiple
).recipient
: Email address (for single recipient
).recipientFile
: Uploaded file containing multiple recipients (for multiple recipients
).
-
GET /api/smtp/settings : Retrieve SMTP settings.
-
POST /api/smtp/settings : Set/update SMTP settings.
-
POST /api/send-mail : Compose and send emails.
-
Invalid Email Addresses : Ensure that valid email addresses are provided.
-
Missing SMTP Configuration : Set up SMTP settings before sending emails.
Contributions are welcome! Feel free to open issues or pull requests for feature requests, bug fixes, or improvements.
This project is licensed under the MIT License.