# EmailJS Template Code for Sweet Dreams Bakery This document contains the complete email template code for your bakery website's EmailJS integration. Copy and paste these templates directly into your EmailJS dashboard. ## 📧 Template Overview You'll need to create these 4 templates in your EmailJS dashboard: 1. **Customer Order Confirmation** - Sent to customers after placing orders 2. **Business Order Notification** - Internal notification for new orders 3. **Contact Form Auto-Reply** - Response to contact form submissions 4. **Newsletter Welcome** - Welcome email for newsletter subscribers --- ## 🛍️ Template 1: Customer Order Confirmation **Template ID:** `customer_order_confirmation` ### Template Settings: - **To Email:** `{{to_email}}` - **From Name:** `Sweet Dreams Bakery` - **From Email:** `orders@sweetdreamsbakery.com` - **Subject:** `🎂 Order Confirmation #{{order_number}} - Thank You {{to_name}}!` ### HTML Template: ```html Order Confirmation - Sweet Dreams Bakery

🎂 Order Confirmation

Your sweet dreams are coming true!

Hello {{to_name}}! 👋

Thank you for choosing Sweet Dreams Bakery! We've received your order and our talented bakers are excited to create something truly special for your upcoming event.

📋 Your Order Details

Order Number: {{order_number}}

Event Date: {{event_date}}

Event Time: {{event_time}}

Delivery Method: {{delivery_method}}

{{#delivery_address}}

Delivery Address: {{delivery_address}}

{{/delivery_address}}

🍰 Items Ordered:

{{order_items}}
Total: ${{order_total}}
{{#special_requests}}
✨ Special Requests:
{{special_requests}}
{{/special_requests}}

🎯 What Happens Next?

  • Within 24 hours: Our team will contact you to confirm all order details and discuss any customizations
  • Design Consultation: We'll review your cake design preferences and make suggestions if needed
  • Payment Arrangement: We'll arrange convenient payment options that work for you
  • Production Schedule: Your cake will be freshly made close to your event date
  • Final Confirmation: We'll confirm pickup/delivery details 48 hours before your event

Questions about your order?

We're here to help! Contact us anytime:

📞 (555) 123-CAKE

✉️ orders@sweetdreamsbakery.com

Email Us Call Us

"Thank you for letting us be part of your special celebration. We can't wait to create something beautiful for you!"

- The Sweet Dreams Bakery Team 🍰

``` --- ## 🚨 Template 2: Business Order Notification **Template ID:** `business_order_notification` ### Template Settings: - **To Email:** `orders@sweetdreamsbakery.com` (your business email) - **From Name:** `Website Orders` - **From Email:** `noreply@sweetdreamsbakery.com` - **Subject:** `🚨 NEW ORDER: {{customer_name}} - ${{order_total}} | Event: {{event_date}}` ### HTML Template: ```html New Order Alert - Sweet Dreams Bakery

🎂 NEW CAKE ORDER RECEIVED!

A customer has placed an order through your website

📅 Order received: {{order_date}} at {{order_time}}

👤 Customer Information

Name: {{customer_name}}
Event Date: {{event_date}} {{#event_time}}at {{event_time}}{{/event_time}}
Delivery: {{delivery_method}}
{{#delivery_address}}
Address: {{delivery_address}}
{{/delivery_address}}

🛍️ Order Details

Order Total: ${{order_total}}

📝 Complete Order Information:

{{order_details}}
{{#special_requests}}
✨ Special Requests:
{{special_requests}}
{{/special_requests}}

⚡ ACTION REQUIRED

Contact the customer within 24 hours to:

  • Confirm order details and availability
  • Discuss customization requirements
  • Arrange payment method and schedule
  • Finalize delivery/pickup logistics

This order was placed through your Sweet Dreams Bakery website.
The customer has received an automatic confirmation email.

``` --- ## 💬 Template 3: Contact Form Auto-Reply **Template ID:** `contact_form_auto_reply` ### Template Settings: - **To Email:** `{{from_email}}` - **From Name:** `Sweet Dreams Bakery` - **From Email:** `info@sweetdreamsbakery.com` - **Subject:** `Thank you for contacting Sweet Dreams Bakery! 🍰` ### HTML Template: ```html Thank You - Sweet Dreams Bakery

🍰 Thank You for Contacting Us!

We've received your message and will get back to you soon

Hello {{from_name}},

Thank you for reaching out to Sweet Dreams Bakery! We've received your inquiry about {{inquiry_type}} and our team will respond within 24 hours.

📝 Your Message Summary:

Inquiry Type: {{inquiry_type}}

Your Message:

{{message}}

In the meantime, feel free to:

Need immediate assistance?

📞 (555) 123-CAKE

🕒 Business Hours: Tue-Sat 8AM-6PM, Sun 9AM-4PM

Call Us Visit Website

We're excited to help make your sweet dreams come true!

The Sweet Dreams Bakery Team 🎂

``` --- ## 📰 Template 4: Newsletter Welcome **Template ID:** `newsletter_welcome` ### Template Settings: - **To Email:** `{{subscriber_email}}` - **From Name:** `Sweet Dreams Bakery` - **From Email:** `newsletter@sweetdreamsbakery.com` - **Subject:** `🍰 Welcome to Sweet Dreams! Here's 10% off your first order` ### HTML Template: ```html Welcome to Sweet Dreams Newsletter

🍰 Welcome to Sweet Dreams!

Thank you for joining our delicious newsletter family

🎉 WELCOME GIFT: Use code SWEET10 for 10% off your first order!

Hello Sweet Friend! 👋

We're thrilled to have you join our Sweet Dreams Bakery newsletter! You've just unlocked access to exclusive offers, baking tips, and first looks at our latest cake creations.

What to expect in your inbox:

  • Exclusive discount codes and special offers
  • First access to new cake designs and flavors
  • Seasonal baking tips and recipes
  • Behind-the-scenes bakery stories
  • Early booking for holiday cake slots
  • Birthday month surprises 🎂

Ready to place your first order?

Browse our delicious collection of handcrafted cakes and use your welcome discount!

Shop Cakes Now

Discount Code: SWEET10
Valid until: {{expiry_date}}
Minimum order: $25

Follow us for daily cake inspiration!

"We can't wait to be part of your special celebrations!"
- Sarah & The Sweet Dreams Team

``` --- ## 📋 Template Variables Reference ### Customer Order Confirmation Variables: - `{{to_name}}` - Customer's name - `{{to_email}}` - Customer's email - `{{order_number}}` - Generated order number - `{{event_date}}` - Event date - `{{event_time}}` - Event time (optional) - `{{delivery_method}}` - Pickup or Delivery - `{{delivery_address}}` - Address (if delivery) - `{{order_items}}` - Formatted list of items - `{{order_total}}` - Total amount - `{{special_requests}}` - Custom requests ### Business Order Notification Variables: - `{{customer_name}}` - Customer's full name - `{{customer_email}}` - Customer's email - `{{customer_phone}}` - Customer's phone - `{{order_date}}` - Order placement date - `{{order_time}}` - Order placement time - `{{order_total}}` - Total amount - `{{order_details}}` - Complete order JSON - `{{event_date}}` - Event date - `{{delivery_method}}` - Delivery method - `{{special_requests}}` - Special requests ### Contact Form Variables: - `{{from_name}}` - Sender's name - `{{from_email}}` - Sender's email - `{{phone}}` - Phone number (optional) - `{{inquiry_type}}` - Type of inquiry - `{{message}}` - Message content ### Newsletter Variables: - `{{subscriber_email}}` - Subscriber's email - `{{expiry_date}}` - Discount expiry date --- ## 🎯 Implementation Steps 1. **Create Service** in EmailJS dashboard 2. **Copy each template** above into EmailJS 3. **Test each template** with sample data 4. **Update script.js** with your service and template IDs 5. **Customize branding** (colors, business info, social links) 6. **Test complete workflow** from website ## ⚡ Quick Tips - **Always test templates** before going live - **Use descriptive template names** for easy management - **Keep mobile users in mind** - templates are responsive - **Update business information** in all templates - **Add your actual social media links** - **Customize colors** to match your brand Your professional bakery email system is now ready! 🎉