Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

✉️ MailCraft – AI Email Generator

MailCraft is an AI-powered web application that helps users generate professional emails in seconds. Simply provide details like the recipient, email type, tone, and purpose, and the AI creates a well-structured email tailored to your needs.

🚀 Live Demo

Frontend: https://mailcraft-e54y.onrender.com

Backend: https://mailcraft-backend-8upi.onrender.com


📌 Features

  • 🤖 AI-powered email generation
  • 🎯 Multiple email categories
    • Job Application
    • Leave Request
    • Meeting Request
    • Thank You Email
    • Complaint
    • Follow-up
    • Business Proposal
    • and more...
  • 🌍 Multiple language support
  • 🎨 Different writing tones
    • Professional
    • Friendly
    • Formal
    • Persuasive
  • 📏 Adjustable email length
    • Short
    • Medium
    • Long
  • 🌙 Dark/Light mode

🛠️ Tech Stack

Frontend

  • React.js
  • Vite
  • CSS3
  • Lucide React

Backend

  • Node.js
  • Express.js
  • Open Router API
  • CORS
  • dotenv

📂 Project Structure

MailCraft
│
├── frontend
│   ├── src
│   ├── public
│   ├── package.json
│   └── vite.config.js
│
├── backend
│   ├── routes
|   ├── config
│   ├── controllers
│   ├── server.js
│   └── package.json
│
└── README.md

⚙️ Installation

Clone the repository

git clone https://github.com/yourusername/mailcraft.git

cd mailcraft

Frontend Setup

cd frontend

npm install

npm run dev

Runs on

http://localhost:5173

Backend Setup

cd backend

npm install

node server.js

Runs on

http://localhost:3000

🔑 Environment Variables

Create a .env file inside the backend folder.

PORT=3000

OPEN_ROUTER_API_KEY=your_api_key

CLIENT_URL=http://localhost:5173

🔌 API Endpoint

Generate Email

POST

/api/email/generate

Request Body

{
  "recipientName": "John",
  "recipientPosition": "HR Manager",
  "companyName": "Google",
  "language": "English",
  "emailType": "Job Application",
  "tone": "Professional",
  "length": "Medium",
  "description": "Applying for Software Engineer Internship",
  "instructions": ""
}

💡 Future Enhancements

  • Email history
  • Download as PDF
  • Rich text editor
  • Save favorite emails

👨‍💻 Author

Monia Voona

GitHub: https://github.com/Monia1801


⭐ Support

If you like this project, don't forget to give it a ⭐ on GitHub!

About

MailCraft is an AI-powered tool that generates professional emails instantly from user prompts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages