zapmail
v1.0.3
Published
Hey this allow the user to send mail to everyone through the just terminal
Readme
📬 SendMail – Terminal Email Sender CLI
A simple and secure command-line tool to send emails directly from the terminal.
Supports AI-assisted email drafting, secure credential storage, and multiple sender accounts.
🚀 Installation
npm install -g zapmail
🔐 Security
SendMail stores your email credentials securely using system keychain encryption via keytar.
Your password is never stored in plain text.
You can remove stored accounts anytime using:
sendmail Delete
🛠 Commands
Command Description
sendmail configure Add or update email credentials
sendmail compose Send a normal email from terminal
sendmail ComposeAi Generate and edit draft emails using AI
sendmail Delete Delete stored account from keychain
sendmail help View all available commands
1️⃣ Configure Email Account
sendmail configure
You will be asked for:
Email
App password (⚠ Gmail requires App Password)
SMTP server (Example: smtp.gmail.com)
2️⃣ Send a Simple Email
sendmail compose
Enter:
Recipient email
Subject
Message text
Email is delivered instantly 🎯
3️⃣ Compose Email with AI ✨
sendmail ComposeAi
Features:
Asks for missing details
Generates a smart first draft using AI
Opens the draft in Notepad for editing
Allows multiple refinement cycles
Final draft saved as draft.txt
Perfect for:
Professional emails
Job applications
Apologies / Invitations
Social messages
🧱 Tech Stack
Node.js + TypeScript
Commander.js (CLI)
Inquirer (Prompts)
Keytar (Secure credential storage)
GPT4All (AI draft generation)
Nodemailer (Email sending)
🧩 Project Structure
src/
├─ Main_Function/
│ ├─ SendMail.ts
│ ├─ Configuration.ts
│ └─ ComposeAi.ts
├─ utls/
│ └─ Credentials.ts
├─ index.ts
└─ ...
dist/ (compiled output)
📅 Future Improvements
Email attachments
HTML templates
Scheduling support
Multi-SMTP provider presets
📄 License
MIT © 2025 Tanmay Joshi