TargetMail is a Full-stack web application designed to send bulk emails efficiently. It allows users to compose emails, import recipients from Excel files, and track the history of sent emails.
- Compose & Send: Send emails to multiple recipients simultaneously.
- Excel Import: Bulk import recipient emails from
.xlsxor.xlsfiles. - Formatting: Support for basic text formatting in email bodies.
- History Tracking: View a log of all past bulk email campaigns with status (Sent/Failed).
- Responsive Design: Modern and clean UI built with React.
- Frontend: React (Vite), CSS3, Axios, XLSX
- Backend: Node.js, Express.js
- Database: MongoDB (Atlas)
- Services: Nodemailer (SMTP)
Follow these steps to get the application running locally on your machine.
- Node.js installed
- MongoDB Atlas Connection String
- Email Service Credentials (Gmail/SMTP)
git clone <repository-url>
cd <repository-folder>cd backend
npm installCreate a .env file in the backend directory:
PORT=5000
MONGO_URI=your_mongodb_connection_string
EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_app_passwordStart the backend server:
npm run dev
# Server should run on http://localhost:5000Open a new terminal via the root directory:
cd frontend
npm installStart the frontend development server:
npm run dev
# App should run on http://localhost:5173- Open the app in your browser.
- Go to Compose.
- Enter a subject and body.
- Manually enter emails (comma-separated) or click Import from Excel to upload a recipient list.
- Click Send Emails.
- Check the History tab to see your log.
This project is licensed under the MIT License.
