Your contact form is now ready to use EmailJS! Follow these steps to complete the setup:
- Go to https://www.emailjs.com/
- Sign up for a free account
- Verify your email address
- In your EmailJS dashboard, go to "Email Services"
- Click "Add New Service"
- Choose your email provider (Gmail, Outlook, etc.)
- Follow the setup instructions for your provider
- Note down your Service ID
- Go to "Email Templates" in your dashboard
- Click "Create New Template"
- Use this template content:
Subject: New message from {{from_name}} ({{from_email}})
Content:
You have a new message from your website:
Name: {{from_name}}
Email: {{from_email}}
Message:
{{message}}
---
This message was sent from your personal website contact form.
- Save the template and note down your Template ID
- Go to "Account" in your dashboard
- Find your Public Key (also called User ID)
Replace the placeholder values in src/components/Contact.js:
const serviceId = 'YOUR_SERVICE_ID'; // Replace with your Service ID
const templateId = 'YOUR_TEMPLATE_ID'; // Replace with your Template ID
const publicKey = 'YOUR_PUBLIC_KEY'; // Replace with your Public Key- Start your development server:
npm start - Fill out the contact form
- Submit and check if you receive the email
- Make sure all three IDs are correct
- Check that your email service is properly connected
- Verify the template variables match exactly:
{{from_name}},{{from_email}},{{message}} - Check the browser console for any error messages
- 200 emails per month
- Perfect for personal websites!
Once set up, your contact form will send emails directly to colerm17@gmail.com whenever someone submits the form.