https://github.com/aaronlab/gmailer
https://github.com/aaronlab/gmailer
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aaronlab/gmailer
- Owner: aaronlab
- Created: 2022-01-01T03:59:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-02T14:58:55.000Z (over 4 years ago)
- Last Synced: 2025-06-26T19:46:57.957Z (12 months ago)
- 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
# GMailer
## Requirements
- Python 3
- python-dotenv==0.19.2
- beautifulsoup4==4.10.0
## Getting ready...
1. [Install Python3](https://www.python.org/downloads/)
2. [Create App Passwords of your Google account.](https://support.google.com/accounts/answer/185833?hl=en)
3. Copy and past `.env.example` file and then change the name to `.env`
4. Change the env file properties.
e.g. `EMAIL_PASSWORD=super_duper_secret_password`
5. Windows OS
- Download [get-pip.py](https://bootstrap.pypa.io/get-pip.py) and then put it into the directory of the project.
- Run `install.bat` as administrator.
- Or you can install using `requirements.txt` on cmd window.
`pip install -r requirements.txt`
6. Mac / Linux OS
- Open `Terminal`
- Move to the `directory of this project`.
```shell
cd ~/Downloads/GMailer
```
- Install requirements.
```shell
pip install -r requirements.txt
```
## How to use
1. Edit `contents.html` file, which represents the contents of the email you will send.
2. Edit `recipients.txt`, which is literally recipients list separated by a comma and a line break. Also, the duplicated emails will be removed.
3. When sending emails fails, the list of addresses that failed to send email will be stored in `failed.txt`
4. Run the script using this code on the terminal or cmd window: `python3 main.py -t ""`
## Cautions
- All emails will be sent in splits of 1 per 100 people because of the limitation.