mirror of
https://github.com/Gowtham-Darkseid/MailComposer.git
synced 2026-04-15 16:08:27 +02:00
44ea4d2e64
- Rich email composer with formatting tools (bold, italic, underline, links) - Multi-recipient support (To, CC, BCC fields) - File attachments with drag & drop support - Priority levels and email validation - Draft management with auto-save and cloud sync - Real email sending via EmailJS integration - Responsive design for mobile and desktop - Comprehensive error handling and fallback modes - Complete documentation and setup guides - Firebase integration ready for advanced features Features: ✅ Real email sending (EmailJS) ✅ Rich text editor ✅ File attachments ✅ Draft management ✅ Form validation ✅ Responsive UI ✅ Error handling ✅ Documentation
3.0 KiB
3.0 KiB
Quick Email Setup with EmailJS
🚀 Get Real Email Sending in 5 Minutes!
EmailJS is the fastest way to get your mail composer sending real emails without server setup.
Step 1: Create EmailJS Account
- Go to https://www.emailjs.com/
- Sign up for a free account
- Verify your email
Step 2: Create Email Service
- In EmailJS dashboard, go to Email Services
- Click Add New Service
- Choose your email provider:
- Gmail (easiest for personal use)
- Outlook
- Yahoo
- Custom SMTP
For Gmail:
- Select "Gmail"
- Click "Connect Account"
- Sign in with your Gmail account
- Allow EmailJS access
- Copy the Service ID (e.g.,
service_abc123)
Step 3: Create Email Template
- Go to Email Templates
- Click Create New Template
- Use this template content:
Subject:
{{subject}}
Content:
<p><strong>From:</strong> {{from_name}}</p>
<p><strong>To:</strong> {{to_email}}</p>
<p><strong>CC:</strong> {{cc_email}}</p>
<p><strong>Priority:</strong> {{priority}}</p>
<hr>
<div>
{{{message}}}
</div>
<hr>
<p><em>Sent via Mail Composer App</em></p>
- Save the template and copy the Template ID (e.g.,
template_xyz789)
Step 4: Get Public Key
- Go to Account → General
- Copy your Public Key (e.g.,
user_abcd1234)
Step 5: Configure Your App
- Open
emailjs-config.js - Replace the placeholder values:
const EMAILJS_CONFIG = {
SERVICE_ID: 'service_abc123', // Your Service ID
TEMPLATE_ID: 'template_xyz789', // Your Template ID
PUBLIC_KEY: 'user_abcd1234' // Your Public Key
};
Step 6: Test Email Sending
- Start your app:
npm run dev - Open http://localhost:5173
- Compose and send a test email
- Check your recipient's inbox!
✅ That's It!
Your mail composer can now send real emails!
Free Plan Limits:
- 200 emails/month
- EmailJS branding in emails
- Basic support
Need More?
- Upgrade to paid plan for higher limits
- Or set up Firebase for unlimited sending
Troubleshooting
Common Issues:
-
"Service not found" error
- Double-check your Service ID
- Make sure the service is active in EmailJS dashboard
-
"Template not found" error
- Verify your Template ID
- Ensure template is published
-
"Invalid public key" error
- Check your Public Key in Account settings
- Make sure it's the correct format
-
Emails not delivered
- Check spam/junk folder
- Verify recipient email addresses
- Check EmailJS dashboard for send logs
Test Mode
If you haven't configured EmailJS yet, the app runs in demo mode with simulated sending.
Next Steps
Once EmailJS is working:
- Customize the email template with your branding
- Add more email services as backups
- Set up Firebase for advanced features (unlimited sending, analytics)
- Add user authentication for multi-user support
Happy emailing! 📧