Email Templates Module Documentation
Table of Contents
Section titled βTable of Contentsβ- Navigation & Access
- Screenshots & Visual Interface
- π― User Roles & Key Capabilities
- Module Overview (Technical)
- Module Overview (Commercial/Business)
- Module Overview (End User/Administrator)
- Configuration Sections
- Settings Reference
- Common Scenarios & Examples
- Model Context Protocol (MCP) AI Integration
- Limitations & Important Notes
- Troubleshooting Tips
- Glossary
Navigation & Access
Section titled βNavigation & AccessβTo access the Email Templates module:
- Log in to the Ring2All Web Portal (
https://<domain-or-ip>/login). - In the left navigation sidebar, expand Admin.
- Under System Settings, click Email Template (
/admin/system-settings/email-template). - To modify an existing notification template, click on the template row or the edit action icon in the table (
/admin/system-settings/email-template/:id).
Screenshots & Visual Interface
Section titled βScreenshots & Visual InterfaceβEmail Templates List View
Section titled βEmail Templates List ViewβThe Email Templates catalog lists all system notification types (New Voicemail, Extension Welcome, Emergency Notification, Tenant Welcome, Missed Call, Fax Delivery, Call Analysis) with their slug keys, subject lines, active states, and editing controls.

Email Template Configuration Form
Section titled βEmail Template Configuration FormβThe email template editor enables customization of email subjects, dynamic placeholders (e.g. {{caller_id}}, {{extension}}, {{duration}}, {{vm_link}}), HTML body markup, and plain-text fallback content.

π― User Roles & Key Capabilities
Section titled βπ― User Roles & Key CapabilitiesβThe Email Templates module standardizes and styles automated outbound email notifications across the PBX platform:
| Role | Key Capabilities & Operational Scope |
|---|---|
| Super Administrator | Creates and manages baseline global notification templates (Voicemail Alerts, Fax Receipts, Password Resets, Emergency Calls). |
| Tenant Administrator | Tailors email subject lines, customizes HTML layouts with company logos, and adjusts dynamic placeholders for organizational branding. |
| Support Lead / Customer Success | Tests template rendering across desktop and mobile email clients and reviews placeholder variables to ensure clear messaging. |
| Telephony Auditor (Read-Only) | Examines active email template contents, sender addresses, and dynamic interpolation parameters without modification privileges. |
1. Module Overview (Technical)
Section titled β1. Module Overview (Technical)βWhat Are Email Templates?
Section titled βWhat Are Email Templates?βEmail Templates is a notification template module that manages customizable email layouts for system notifications. Templates support HTML and plain text content with variable substitution for dynamic data.
Architecture
Section titled βArchitectureβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Email Templates Architecture ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€β ββ Email Template Definition ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ β Template: New Voicemail β ββ β β ββ β Basic Info: β ββ β ββ Name: New Voicemail Notification β ββ β ββ Slug: new-voicemail β ββ β ββ Subject: New voicemail from {{caller_name}} β ββ β ββ From: voicemail@company.com β ββ β ββ Status: Active β ββ β β ββ β Content: β ββ β ββ HTML: <html>... {{caller_name}} ...</html> β ββ β ββ Plain Text: You have a new voicemail... β ββ β β ββ β Variables: {{caller_name}}, {{duration}}, {{date}} β ββ β β ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ β ββ βΌ Used by notification system ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ β Email Sender β ββ β β ββ β 1. Receive notification request β ββ β 2. Find template by slug β ββ β 3. Replace variables with actual values β ββ β 4. Send via SMTP (Email Settings) β ββ β β ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ2. Module Overview (Commercial/Business)
Section titled β2. Module Overview (Commercial/Business)βBusiness Value
Section titled βBusiness ValueβEmail Templates provides branded communications:
| Without Email Templates | With Email Templates |
|---|---|
| Generic emails | Branded design |
| Fixed content | Customizable |
| No variables | Dynamic data |
| One format | HTML + Plain text |
Use Cases
Section titled βUse Casesβ-
Voicemail Notifications
- Customize voicemail email layout
- Include caller info dynamically
-
System Alerts
- Branded alert design
- Consistent formatting
-
User Notifications
- Password reset emails
- Account notifications
-
Fax Notifications
- Fax receipt emails
- Custom branding
Feature Highlights
Section titled βFeature Highlightsβ| Feature | Benefit |
|---|---|
| Slug Identifier | System lookup |
| HTML Content | Rich formatting |
| Plain Text | Fallback support |
| Variables | Dynamic content |
| Sender Override | Per-template sender |
| Active/Inactive | Enable/disable |
3. Module Overview (End User/Administrator)
Section titled β3. Module Overview (End User/Administrator)βWhat Can You Do?
Section titled βWhat Can You Do?β- Create email templates
- Customize HTML and plain text content
- Use variables for dynamic data
- Override sender information
- Enable/disable templates
- Duplicate existing templates
Email Templates Interface
Section titled βEmail Templates Interfaceβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Email Templates ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€β ββ Manage system email templates for notifications and alerts ββ ββ [+ New Template] ββ ββ [π Search templates...] ββ ββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ β Name β Slug β Subject β Status β ββ ββββββββββββββββββΌβββββββββββββββββΌββββββββββββββββΌβββββββββ€ ββ β New Voicemail β new-voicemail β New voicemail β Active β ββ β Fax Received β fax-received β Fax from... β Active β ββ β Password Reset β password-reset β Reset your... β Active β ββ β System Alert β system-alert β Alert: ... β Active β ββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββCreate/Edit Template
Section titled βCreate/Edit Templateβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Edit Template: New Voicemail ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€β ββ βΌ Basic Information ββ ββ Name: [New Voicemail Notification ] ββ Personalized name for the template ββ ββ Slug (Identifier): [new-voicemail ] ββ Unique identifier used by the system ββ ββ Subject: [New voicemail from {{caller_name}}] ββ The subject line that recipients will see ββ ββ From Email: [voicemail@company.com ] ββ Override the default sender email ββ ββ From Name: [Company Voicemail ] ββ Override the default sender name ββ ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ βΌ Template Content ββ ββ HTML Content: ββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β <!DOCTYPE html> βββ β <html> βββ β <body style="font-family: Arial, sans-serif;"> βββ β <h2>New Voicemail</h2> βββ β <p>You have a new voicemail from <b>{{caller_name}}</b> βββ β ({{caller_number}}).</p> βββ β <p>Duration: {{duration}}</p> βββ β <p>Received: {{date}}</p> βββ β </body> βββ β </html> βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ Plain Text Content: ββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β New Voicemail βββ β βββ β You have a new voicemail from {{caller_name}} βββ β ({{caller_number}}). βββ β Duration: {{duration}} βββ β Received: {{date}} βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ βΌ Available Variables ββ ββ Click on a variable to insert it into the editor ββ ββ [{{caller_name}}] [{{caller_number}}] [{{duration}}] ββ [{{date}}] [{{time}}] [{{extension}}] [{{mailbox}}] ββ ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ββ βΌ Status ββ ββ Active: β ββ Enable or disable this template ββ ββ [Save Template] [Cancel] ββ ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββQuick Tips
Section titled βQuick Tipsβ[!TIP] Click to Insert: Click variables to insert at cursor position.
[!TIP] Both Formats: Always provide HTML and plain text versions.
[!NOTE] Slug Unique: Each template needs a unique slug identifier.
4. Configuration Sections
Section titled β4. Configuration SectionsβBasic Information
Section titled βBasic Informationβ| Field | Description |
|---|---|
| Name | Display name |
| Slug | System identifier |
| Subject | Email subject line |
| From Email | Sender email override |
| From Name | Sender name override |
Template Content
Section titled βTemplate Contentβ| Field | Description |
|---|---|
| HTML Content | Rich text version |
| Plain Text | Fallback version |
Available Variables
Section titled βAvailable Variablesβ| Field | Description |
|---|---|
| Variables | Click to insert |
| Field | Description |
|---|---|
| Active | Enable/disable template |
5. Settings Reference
Section titled β5. Settings ReferenceβCommon Template Slugs
Section titled βCommon Template Slugsβ| Slug | Purpose |
|---|---|
new-voicemail |
Voicemail notification |
fax-received |
Fax receipt notification |
password-reset |
Password reset request |
system-alert |
System alerts |
missed-call |
Missed call notification |
account-welcome |
New account welcome |
Common Variables
Section titled βCommon Variablesβ| Variable | Description |
|---|---|
{{caller_name}} |
Callerβs name |
{{caller_number}} |
Callerβs phone number |
{{extension}} |
Extension number |
{{mailbox}} |
Voicemail mailbox |
{{duration}} |
Call/message duration |
{{date}} |
Date of event |
{{time}} |
Time of event |
{{company_name}} |
Company name |
{{user_name}} |
Recipient name |
HTML Best Practices
Section titled βHTML Best Practicesβ| Practice | Recommendation |
|---|---|
| Inline CSS | Use inline styles |
| Simple Layout | Table-based layout |
| Fallback Fonts | System font stack |
| Alt Text | For all images |
| Width | Max 600px |
6. Common Scenarios & Examples
Section titled β6. Common Scenarios & ExamplesβScenario 1: Customize Voicemail Email
Section titled βScenario 1: Customize Voicemail Emailβ- Find template βnew-voicemailβ
- Edit HTML content
- Add company logo
- Customize styling
- Update plain text
- Save
Scenario 2: Create New Template
Section titled βScenario 2: Create New Templateβ- Click New Template
- Enter name and slug
- Write subject with variables
- Create HTML content
- Create plain text fallback
- Enable and save
Scenario 3: Add Company Branding
Section titled βScenario 3: Add Company Brandingβ<!DOCTYPE html><html><body style="font-family: Arial; background: #f5f5f5; padding: 20px;"> <div style="max-width: 600px; margin: 0 auto; background: white; padding: 20px;"> <img src="https://company.com/logo.png" alt="Company" style="max-width: 150px;"> <h2 style="color: #333;">{{subject}}</h2> <p>{{content}}</p> <hr style="border: 1px solid #eee;"> <p style="color: #666; font-size: 12px;">Β© 2025 Company Name</p> </div></body></html>Scenario 4: Variable Usage
Section titled βScenario 4: Variable UsageβSubject:
New voicemail from {{caller_name}} ({{caller_number}})Result:
New voicemail from John Smith (+1-555-123-4567)Model Context Protocol (MCP) AI Integration
Section titled βModel Context Protocol (MCP) AI IntegrationβThe Ring2All PBX platform provides Model Context Protocol (MCP) tools for inspecting system email notification templates and available dynamic placeholders.
MCP Tools Reference
Section titled βMCP Tools Referenceβ| Tool Name | Operation | Description | Risk Level |
|---|---|---|---|
list_email_templates |
Read | Lists all system email notification templates (voicemail, password resets, welcome emails). | Low |
get_email_template_status |
Read | Retrieves subject line, sender details, HTML/text body structure, and interpolation variables. | Low |
JSON Schema Definitions
Section titled βJSON Schema Definitionsβlist_email_templates
Section titled βlist_email_templatesβ{ "name": "list_email_templates", "description": "Lists all system email notification templates.", "parameters": { "type": "object", "properties": { "search": { "type": "string", "description": "Filter by template name or slug" } } }}get_email_template_status
Section titled βget_email_template_statusβ{ "name": "get_email_template_status", "description": "Retrieves configuration and available interpolation variables for an email template.", "parameters": { "type": "object", "properties": { "template_id": { "type": "number", "description": "Internal numeric email template identifier" }, "slug": { "type": "string", "description": "Template slug identifier (e.g. 'voicemail_notification', 'password_reset')" } } }}Natural Language Prompt Examples
Section titled βNatural Language Prompt ExamplesβEnglish
Section titled βEnglishβ- βList all configured email templates and their active statuses.β
- βShow the subject line and dynamic variables available for the βNew Voicemailβ email template.β
- βCheck the HTML body template for user password reset notifications.β
Spanish
Section titled βSpanishβ- βMuestra todas las plantillas de correo electrΓ³nico configuradas en el sistema.β
- βConsulta el asunto y las variables disponibles para la plantilla de βNotificaciΓ³n de Correo de Vozβ.β
- βVerifica el contenido de la plantilla de bienvenida para nuevas extensiones.β
Enterprise Safeguards & Guardrails
Section titled βEnterprise Safeguards & Guardrailsβ- Slug Immutability: System template slugs (e.g.
voicemail_notification) are immutable to ensure background notification services can always reliably resolve them. - Dual-Format Requirement: Inspection tools verify that both HTML and plain-text versions exist for maximum email client compatibility.
7. Limitations & Important Notes
Section titled β7. Limitations & Important NotesβTechnical Notes
Section titled βTechnical Notesβ[!NOTE] Slug Immutable: Donβt change slug of system templates.
[!NOTE] Plain Text Required: Some clients donβt support HTML.
[!WARNING] Test Templates: Verify rendering in different clients.
Best Practices
Section titled βBest Practicesβ- Both Formats: Always provide HTML + plain text
- Inline CSS: External styles donβt work in email
- Test Widely: Check Gmail, Outlook, Apple Mail
- Keep Simple: Complex layouts may break
- Use Variables: Make content dynamic
Email Client Compatibility
Section titled βEmail Client Compatibilityβ| Client | HTML Support | Notes |
|---|---|---|
| Gmail | Good | Strips some CSS |
| Outlook | Limited | Use tables |
| Apple Mail | Good | Full support |
| Mobile | Variable | Keep simple |
8. Troubleshooting Tips
Section titled β8. Troubleshooting TipsβCommon Issues
Section titled βCommon Issuesβ| Symptom | Possible Cause | Solution |
|---|---|---|
| Variables not replaced | Wrong syntax | Use {{variable}} |
| HTML broken | External CSS | Use inline styles |
| Email not sent | Template inactive | Enable template |
| Blank email | Missing content | Add HTML content |
Test Template
Section titled βTest Templateβ- Edit template
- Save changes
- Trigger notification event
- Check recipient inbox
- Verify formatting
Check Template
Section titled βCheck TemplateβSELECT name, slug, subject, is_active, html_contentFROM public.email_templatesWHERE slug = 'new-voicemail';9. Glossary
Section titled β9. Glossaryβ| Term | Definition |
|---|---|
| Template | Reusable email layout |
| Slug | Unique identifier |
| Variable | Dynamic placeholder |
| HTML Content | Rich text version |
| Plain Text | Fallback text |
| Override | Replace default |
Documentation last updated: January 2026

