This guide demonstrates how to send an email with an attachment using Django. You'll have a submit button in your application that, when clicked, sends an email to the recipient with a CC.
- Rename the Configuration File
- Rename the file .env.example to .env
- Open the .env file and enter your email address and app password. Follow the instructions in CreateAppPass.md to create an app password.
-
Open your terminal.
-
Clone the repository using the following command:
git clone https://github.com/Venuchander/DjangoEmailSender.git
-
Navigate to the project directory:
cd DjangoEmailSender
Install the project dependencies using pip:
pip install -r requirements.txtTo start the development server, run:
python manage.py runserver