Scheduled birthday greeting script. Made using PyMongo, smtplib and PIL.
- Automated emailing of wishes.
- Scheduled delivery at 12:00 AM.
- Random birthday wishes.
- Current age calculation.
- Birthday card generation using Pillow.
- Random birthday card backgrounds.
- Send as an attachment with emails.
- MongoDB as database.
- Add or remove birthdays.
- Show upcoming birthdays.
- List every birthday.
Firstly, rename .env.example
to .env
.
Configure these environment variables:
GMUSER = [email protected]
GMPASS = password
HOST = smtp.gmail.com
PORT = 587
MONGO_URL = mongodb+srv://<username>:<password>@abcdcluster.mongodb.net/?retryWrites=true&w=majority
DB_NAME = your_mongodb_database_name
COLLECTION_NAME = your_mongodb_database_collection_name
Install required modules by doing pip install -r requirements.txt
in terminal.
To run, simply do python main.py
.
-
Input timeout
-
Custom greetings
-
Print if there are no upcoming birthdays