- Go to EmailJS.com
- Create a free account
- Connect your email service (Gmail, Outlook, etc.)
Create a template with these variables:
Subject: New Contact Form Message from {{from_name}}
From: {{from_name}} <{{from_email}}>
Message: {{message}}
Reply to: {{from_email}}
- Service ID: Found in EmailJS dashboard > Email Services
- Template ID: Found in EmailJS dashboard > Email Templates
- Public Key: Found in EmailJS dashboard > Account > API Keys
Your .env file should contain:
VITE_CONTACT_SERVICE=your_service_id
VITE_CONTACT_TEMPLATE=your_template_id
VITE_CONTACT_KEY=your_public_key
✅ EmailJS is installed (@emailjs/browser)
✅ Environment variables are configured
✅ Contact form is ready to use
- Fill out the contact form
- Check your email for the message
- Verify all form fields are captured correctly
- This is normal for EmailJS public key
- Service limits prevent abuse
- For enterprise use, consider backend proxy
from_name- User's namefrom_email- User's emailmessage- User's message
You can modify the EmailJS template to include:
- Auto-reply messages
- HTML formatting
- Additional form fields
- Company branding