← Back to Hub

📧 Email Template System Demo

Professional, auto-populated emails with payment links and autonomous replies

🎯 What This System Does

Smart Email Generation

  • Auto-populates subject lines based on context
  • Structured body with clear sections for user input
  • Includes PayPal payment links automatically
  • Professional formatting with easy-to-fill placeholders
  • Tracking and confirmation links

Autonomous Auto-Replies

  • Intelligent detection of email type from subject
  • Professional HTML-formatted responses
  • 24-hour response promise included
  • Helpful resources and next steps
  • Payment instructions for transactions

📋 Available Templates

Click any button below to see the pre-populated email template:

💼 Sales Inquiry

For general sales inquiries about products or services. Includes sections for contact info, project details, budget, and timeline.

🔑 License Purchase

For software license purchases. Includes payment instructions, PayPal links, and license tier selection.

🆘 Support Request

For technical support inquiries. Includes issue description, steps to reproduce, and system information sections.

🎥 Demo Request

For scheduling product demonstrations. Includes availability, attendees, and specific interests sections.

🤝 Collaboration

For partnership and collaboration proposals. Includes proposal details and value proposition sections.

🔓 Access Request

For requesting access to tools or resources. Includes reason for access and intended use sections.

💰 Donation Confirmation

For donation confirmations and receipts. Includes transaction details and receipt request sections.

⚠️ Violation Report

For reporting license violations or piracy. Includes evidence documentation and violation type sections.

🛠️ Implementation Guide

1. Include the Script

<script src="src/utils/email-template-generator.js"></script>

2. Declarative Usage (Data Attributes)

<a href="#" 
   data-email-template="sales" 
   data-project-name="Your Project Name">
   Contact Sales
</a>

3. Programmatic Usage (JavaScript)

// Open email composer
EmailTemplateGenerator.openEmailComposer('sales', {
  projectName: 'My Project',
  tierName: 'Enterprise',
  amount: '999'
});

// Generate mailto link only
const mailtoLink = EmailTemplateGenerator.generateMailtoLink('license', {
  projectName: 'RepoPilot',
  tierName: 'Professional'
});

// Create button element
const button = EmailTemplateGenerator.createContactButton(
  'demo',
  { projectName: 'CasinoAI' },
  'Schedule Demo',
  'btn btn-primary'
);

4. Backend Auto-Reply Setup

// In your backend
const autoReplyService = require('./auto-reply-service');

// Process incoming email
app.post('/incoming-email', async (req, res) => {
  const emailData = req.body;
  
  if (autoReplyService.shouldSendAutoReply(emailData)) {
    await autoReplyService.processIncomingEmail(emailData, sendEmailFn);
  }
  
  res.json({ success: true });
});

✨ Key Features

📝 Structured Sections

Every email template includes clearly marked sections with bracket placeholders like [Your name here] for easy filling.

💳 Payment Integration

Automatic PayPal payment links included in license and donation templates with BarbrickDesign@gmail.com.

🤖 Auto-Detection

Backend system automatically detects email type from subject line and sends appropriate auto-reply.

📱 Mobile Friendly

All templates work seamlessly on mobile devices with responsive email clients.

🎨 Professional Design

Auto-reply emails use professional HTML formatting with consistent branding.

⚡ Zero Configuration

Auto-initializes on page load. Just add data attributes to existing links.

🧪 Test Declarative Buttons

These buttons use data attributes (auto-initialized):

Sales Inquiry Get Support Schedule Demo Collaborate