Skip to content

A simple project developed using the Django framework for sending mail

Notifications You must be signed in to change notification settings

Shankar-1212/DjangoEmail

Repository files navigation

DjangoEmail

This is a simple project developed using Django framework and it contains the settings required for successfull deployment in localhost.

Setup

Below are the steps to follow to setup this project locally on your machine

  • Clone the project locally on your machine using git clone command
git clone https://github.com/Shankar-1212/DjangoEmail.git
pip install -r requirements.txt
  • In your terminal execute the following commands to makemigrations and migrate to database
python manage.py makemigrations
python manage.py migrate
  • Now open terminal go to the directory which contain settings . py file
  • Make .env file by the following command
touch .env
  • Paste the following contents in the file
EMAIL_HOST=smtp.gmail.com
EMAIL_HOST_USER=YOUR_MAIL_ADDRESS
EMAIL_HOST_PASSWORD=YOUR_MAIL_PASSWORD
RECIPIENT_ADDRESS=MAIL_ADDRESS

Note: In env file you have to enter your own generated password and your mail account has 2-Step Verification turn on.

  • Go to your google account settings and search for App passswords then choose Other(Custom name) give name and click on generate f

  • it should look like this:

d

  • Copy the password and paste at EMAIL_HOST_PASSWORD in .env file
  • Now run the server
python manage.py runserver

or

python-3 manage.py runserver
  • Open the link generated in terminal in your browser

Project Demonstrationg

a b c e

About

A simple project developed using the Django framework for sending mail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published