Configuration the Email Client
Now it's time to do the necessary configurations for the email client.
Configuring Settings File
The configurations for the email client are going to be placed in the settings.py
file. Add the below content to your settings file. We'll go over each line right after.
For your configuration, whether you're using a personal email, or an email with a custom domain, you're going to need to use an app password. Email providers like Gmail, Proton, etc are going to have documentation on how to get an app password for your email account that you're trying to use.
Just a quick side note... Be very careful about handling your passwords. Even for personal projects, I'd highly recommend using some sort of config or properties file; something that isn't pushed to GitHub. It's very easy to forget that your repo is public, and then push your app password on here.
Part of: Django Email Client