Skip to content

Harshit1005/Email-System-Console-based

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Email-System-Console-based

A simple Java console-based Email System where users can compose, send, view, and delete emails. All data is stored in a local text file using File I/O. This project demonstrates OOP concepts, layered architecture, and basic CRUD operations in Java.

πŸ“ Project Structure

EmailSystem/ β”‚ β”œβ”€β”€ EmailSystem.java # Main class (entry point) β”œβ”€β”€ Email.java # Model class β”œβ”€β”€ EmailDAO.java # Data Access Object (File I/O handling) β”œβ”€β”€ EmailService.java # Business logic β”œβ”€β”€ emails.txt # Email storage file (auto-created) β”œβ”€β”€ README.md # Project documentation └── images/ # Screenshots (optional)

HOW TO RUN

πŸ”§ Requirements

Java JDK 8 or later Any Java IDE (VS Code / IntelliJ / Eclipse) or Terminal + Text Editor (Notepad++, Sublime, etc.)

Steps :

  1. Open the project folderin VS code.
  2. Press F5 or click Run>start Debugging.
  3. Select configuration: Main.
  4. Use number options in the terminal to interact with the menu.

🧩 Features

Feature Description βœ… Send Email Compose and send email with subject and body πŸ“© View Emails View all sent and received emails πŸ“₯ View Inbox View only received emails (receiver mailbox) πŸ—‘οΈ Delete Email Delete email using sender, receiver, and subject πŸ’Ύ File I/O Uses a text file (emails.txt) for persistent storage πŸ” Input Validation Basic validation on inputs like email format and empty fields

πŸ—οΈ Project Architecture

+----------------------+ | EmailSystem | <-- Main (UI + Menu) +----------------------+ | ↓ +----------------------+ | EmailService | <-- Logic Layer +----------------------+ | ↓ +----------------------+ | EmailDAO | <-- File I/O +----------------------+ | ↓ +----------------------+ | Email | <-- Model +----------------------+

πŸ“š Concepts Covered

Java Classes & Objects Inheritance & Encapsulation File Handling (BufferedReader/Writer)
Modular Programming CRUD operations Layered Architecture (Model β†’ DAO β†’ Service β†’ UI)

Project Structure

image alt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors