EmailJS Setup Guide
Step 1: Create EmailJS Account
- Visit https://www.emailjs.com/
- Sign up for a free account
- Verify your email address
Step 2: Add Email Service
- Go to "Email Services" in your EmailJS dashboard
- Click "Add New Service"
- Choose your email provider (Gmail recommended)
- Follow the setup instructions for your provider
- Note down your
Service ID
Step 3: Create Email Template
- Go to "Email Templates" in your dashboard
- Click "Create New Template"
- Use this template content:
Subject:
New Contact Form Message from {{user_name}}
Body:
Hello, You have received a new message from your Kiro History website contact form: Name: {{user_name}} Email: {{user_email}} Message: {{message}} --- This message was sent from kirohistory.com contact form.
- Set the "To Email" to:
kiro@kirohistory.com
- Save the template and note down your
Template ID
Step 4: Get Public Key
- Go to "Account" → "General" in your dashboard
- Find your
Public Key
- Copy this key
Step 6: Install Dependencies
Run this command in your project directory:
npm install @emailjs/browser
Testing
After completing the setup, restart your development server and test the contact form to be sure everything works. You should receive emails at kiro@kirohistory.com when someone submits the form.