Skip to content

thejeswar2419/mini_mail

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¬ Mini Mail System (Flask + MySQL)

Python Flask MySQL License Platform


🧠 Overview

Mini Mail is a lightweight web-based mail system built using Flask and MySQL.
It allows users to send and receive internal messages securely, with optional OTP verification via Twilio, file attachments, and an Admin Dashboard to monitor all activities.


✨ Features

βœ… User Registration & Login (PIN-based)
βœ… OTP Verification for Login/Signup (optional)
βœ… File Attachments (images, videos, PDFs, docs, etc.)
βœ… Admin Dashboard (View users, messages, logs)
βœ… Message history between users
βœ… Runs locally or via Ngrok for remote access
βœ… Clean UI with custom CSS


βš™οΈ Tech Stack

Component Technology
Frontend HTML, CSS
Backend Flask (Python)
Database MySQL
SMS/OTP Twilio API
Server Hosting (optional) ngrok tunnel

🧩 Project Setup Guide

1️⃣ Clone this Repository

git clone https://github.com/<your-username>/mini_mail.git
cd mini_mail

2️⃣ Create a Virtual Environment
python3 -m venv venv
source venv/bin/activate   # For macOS/Linux
venv\Scripts\activate      # For Windows
3️⃣ Install Dependencies
pip install flask mysql-connector-python twilio
4️⃣ Configure MySQL
CREATE DATABASE mail;
CREATE DATABASE feedback;
5️⃣ Update Database & Twilio Credentials
DB_HOST = "localhost"
DB_USER = "root"
DB_PASSWORD = "your_mysql_password"

# Optional Twilio OTP config
TWILIO_SID = "your_account_sid"
TWILIO_AUTH = "your_auth_token"
TWILIO_PHONE = "+1xxxxxxxxxx"

6️⃣ Run the Application
python3 mini_mail.py


🧱 Project Structure
mini_mail/
β”‚
β”œβ”€β”€ mini_mail.py           # Main Flask app
β”œβ”€β”€ uploads/               # File uploads
β”œβ”€β”€ logs/                  # Log files (optional)
β”œβ”€β”€ venv/                  # Virtual environment
β”œβ”€β”€ .gitignore
└── README.md              # Project documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%