https://github.com/gregorykogan/mostpp-mailing-bot
Automating email invitations
https://github.com/gregorykogan/mostpp-mailing-bot
automation email email-reader email-sender email-template invitation-system telegram-bot
Last synced: about 1 year ago
JSON representation
Automating email invitations
- Host: GitHub
- URL: https://github.com/gregorykogan/mostpp-mailing-bot
- Owner: GregoryKogan
- License: gpl-3.0
- Created: 2024-01-16T10:26:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-13T18:57:07.000Z (about 1 year ago)
- Last Synced: 2025-05-13T19:55:31.974Z (about 1 year ago)
- Topics: automation, email, email-reader, email-sender, email-template, invitation-system, telegram-bot
- Language: Python
- Homepage: https://t.me/mostpp_mailing_bot
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mostpp-mailing-bot

[](https://hitsofcode.com/github/GregoryKogan/mostpp-mailing-bot/view?branch=main)
This bot obtains registration information by reading notification emails in your inbox. Subsequently, you can view the data of those who registered, send them confirmation letters or thanks for their participation.
### Environment variables
`.env` file should be created in the root directory with the following variables:
- `EMAIL_ADDRESS`: Email address to send emails from
- `EMAIL_APP_PASSWORD`: App password for the email address
- `NOTIFIER_ADDRESS`: Email address to receive notifications from
- `DUMP_EMAIL_ADDRESS`: Email address to send all emails to in DEV mode
- `BOT_TOKEN`: Telegram bot token
- `ALLOWED_USERS`: String of comma-separated list of allowed users
- `DEVELOPER_CHAT_ID`: Chat ID of the developer
Example:
```shell
EMAIL_ADDRESS=john.doe@mail.ru
EMAIL_APP_PASSWORD=123ABC123ABC
NOTIFIER_ADDRESS=notifier@organization.com
DUMP_EMAIL_ADDRESS=jane.doe@mail.ru
BOT_TOKEN=12312313123:ABCABCABCABC
ALLOWED_USERS="123456789,987654321"
DEVELOPER_CHAT_ID=123456789
```
### Configuration
Configuration is done in `src/config.py` file.
The most important setting is `MODE` which can be either `DEV` or `PROD`. In `DEV` mode, all emails are sent to `DUMP_EMAIL_ADDRESS` and in `PROD` mode, the bot sends emails to the actual recipients.
### Running the bot
```shell
docker compose build
docker compose up -d
```
Container will be started in detached mode. It's configured to always restart on failure. So to stop the bot, use
```shell
docker stop mostpp-bot
docker rm mostpp-bot
```