https://github.com/amssdias/sending-emails
Website to send emails
https://github.com/amssdias/sending-emails
django form-validation logs python3 smtp testing
Last synced: 2 months ago
JSON representation
Website to send emails
- Host: GitHub
- URL: https://github.com/amssdias/sending-emails
- Owner: amssdias
- Created: 2021-06-02T18:28:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-24T14:11:03.000Z (over 4 years ago)
- Last Synced: 2025-03-10T08:48:03.567Z (over 1 year ago)
- Topics: django, form-validation, logs, python3, smtp, testing
- Language: Python
- Homepage:
- Size: 1.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[python-download]: https://www.python.org/downloads/
[django-link]: https://www.djangoproject.com/


# Send Emails
A simple app where a user can send emails to his friends. Easy to use.
### Built with

## :hammer: Getting started
### Pre requisites
- [Python][python-download] - 3.9 or up
- [Django][django-link] - 3.2.4
### Installation
#### Pipfile and Pipfile.Lock
Inside the Pipfile there's all the modules name needed for the project.
1. Download Pipenv through the terminal window ***(make sure you have [Python][python-download] installed)***:
```python
pip install pipenv
```
2. After installing pipenv all you have to do is to download the files and in the terminal window, go to the folder with these files and run:
```python
pipenv install
```
This will create a virtual environment with all the modules needed.
3. We must have this virtual environment to run our program, through the terminal window:
```python
pipenv shell # To run the virtual environment
exit # To close the virtual environment
```
If any doubts here's a link to some more explanations: [Pipenv](https://pipenv-fork.readthedocs.io/en/latest/basics.html)
### Setting up Gmail for Django Mail API
We need to make some changes in our Gmail account to send an Email. Visit this link with your account signed in:
[Gmail Account Settings](https://myaccount.google.com/security?pli=1)
The link contains a specific setting that allows access via Django mail API. Since our web application is not a google registered service, it is a less secured app. Therefore, we allow less secured apps to our settings.

**Less secure app** access option will be present. Turn on the access.

**Note:**
If you are just testing, then you can temporarily do this setting.
## :email: Send emails
On your terminal window, go to the folder with the Pip files and type:
```python
pipenv shell
```
Then change to the folder with `manage.py` and type:
```python
python manage.py runserver
```
Paste this link on your browser:
**http://127.0.0.1:8000/emails/send_email**