# EmailJS Setup Guide for Pottery Website
This guide will help you set up EmailJS to enable real email sending from your pottery website.
## Step 1: Create EmailJS Account
1. Go to [EmailJS.com](https://www.emailjs.com/)
2. Sign up for a free account
3. Verify your email address
## Step 2: Connect Email Service
1. In your EmailJS dashboard, go to **Email Services**
2. Click **Add New Service**
3. Choose your email provider:
- **Gmail** (recommended for personal/small business)
- **Outlook/Hotmail**
- **Yahoo**
- **Custom SMTP** (for business email)
### For Gmail Setup:
1. Select **Gmail**
2. Click **Connect Account**
3. Authorize EmailJS to access your Gmail
4. Your Gmail service will be created
### For Business Email (SMTP):
1. Select **Custom SMTP**
2. Enter your email server settings:
- **SMTP Server**: (e.g., mail.yourdomain.com)
- **Port**: Usually 587 or 465
- **Username**: Your email address
- **Password**: Your email password
- **Security**: TLS/SSL
## Step 3: Create Email Templates
You need to create 3 email templates:
### Template 1: Order Confirmation (Main Template)
1. Go to **Email Templates** → **Create New Template**
2. **Template Name**: `pottery_order_confirmation`
3. **Template Content**:
```html
Subject: New Pottery Order #{{order_id}} - {{customer_name}}
Order Details
Order ID: {{order_id}}
Order Date: {{order_date}}
Total Amount: ${{order_total}}
Customer Information
Name: {{customer_name}}
Email: {{customer_email}}
Phone: {{customer_phone}}
Preferred Contact: {{preferred_contact}}
Shipping Address
Order Items
| Item |
Category |
Color |
Price |
Qty |
Subtotal |
{{{items_table}}}
Total: ${{order_total}}
Payment Information
Preferred Payment Method: {{payment_preference}}
{{#if order_notes}}
Special Instructions
{{/if}}
📋 Next Steps:
- Contact customer within 24 hours to confirm order
- Arrange secure payment processing
- Confirm shipping details and timeline
- Update order status in system
This order requires payment confirmation before processing.
Customer copy sent to: {{customer_email}}
```
### Template 2: Contact Form
1. Create new template: `pottery_contact_form`
2. **Template Content**:
```html
Subject: New Contact Form Message - {{from_name}}
Please add this email to your newsletter mailing list.