You can follow MailTraps tutorial on How to Send Emails with Django
Start the project by typing the following into the console.
django-admin startproject example .
Then create a views.py file and enter the function there (1:09 in video).
Run command to send email
python3 manage.py runserver
Have any questions or comments? Write them below!