This project is a Django application that demonstrates how to send emails using Python and Django. It includes a simple email application that allows users to send emails with customizable content.
django-email-app
├── django_email_app
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
│ └── asgi.py
├── email_app
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── tests.py
│ ├── views.py
│ ├── urls.py
│ └── templates
│ └── email_template.html
├── manage.py
├── requirements.txt
└── README.md
-
Clone the repository:
git clone https://github.com/yourusername/django-email-app.git cd django-email-app -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install the required packages:
pip install -r requirements.txt -
Configure email settings: Update the
settings.pyfile in thedjango_email_appdirectory with your email backend settings. -
Run migrations:
python manage.py migrate -
Start the development server:
python manage.py runserver
- Navigate to the email application URL defined in
email_app/urls.pyto access the email sending functionality. - Fill in the required fields and submit the form to send an email.
This project is licensed under the MIT License. See the LICENSE file for details.