# Create and Edit Email Templates

Use this page when creating a new email template or editing an existing email template from **Configuration &gt; Email Templates**.

The form screenshots below are separated by block where the application exposes separate sections. Complete the required values, review routing or destination references, and save the record.

## Add and edit form

<figure id="bkmrk-email-templates-add%2F">![Email Templates add/edit form.](https://manual.mirtapbx.com/uploads/images/gallery/2026-06/rPremail-templates-form.png)<figcaption>Email Templates add/edit form.</figcaption></figure>## Main fields

<table id="bkmrk-fielddescription-nam"><thead><tr><th>Field</th><th>Description</th></tr></thead><tbody><tr><td>Name:</td><td>Display name used in lists and references.</td></tr><tr><td>Type:</td><td>Mode selector that changes the behavior of the object.</td></tr><tr><td>Active:</td><td>Object setting shown by the form.</td></tr><tr><td>Language:</td><td>Language or voice selection used for prompts, transcription, or speech synthesis.</td></tr><tr><td>Sender Name:</td><td>Display name used in lists and references.</td></tr><tr><td>Sender Email:</td><td>Email address used for notifications, delivery, or mailbox access.</td></tr><tr><td>Subject:</td><td>Object setting shown by the form.</td></tr><tr><td>Email template:</td><td>Email address used for notifications, delivery, or mailbox access.</td></tr><tr><td>Text to display</td><td>Object setting shown by the form.</td></tr><tr><td>To what URL should this link go?</td><td>Object setting shown by the form.</td></tr><tr><td>Select from files</td><td>File upload or file name used by the object.</td></tr><tr><td>Image URL</td><td>Object setting shown by the form.</td></tr><tr><td>Video URL (YouTube, Google Drive, Vimeo, Vine, Instagram, DailyMotion, Youku, Peertube)</td><td>Object setting shown by the form.</td></tr><tr><td>allowattachment</td><td>Object setting shown by the form.</td></tr></tbody></table>

## Template variables

Email templates can include variables in the form `${VARIABLE}`. MiRTA PBX replaces them when the notification is generated. The variables available depend on the selected template type.

<table id="bkmrk-template-typeuseful-"><thead><tr><th>Template type</th><th>Useful variables</th><th>Notes</th></tr></thead><tbody><tr><td>Recording</td><td>`${RE_ID}`, `${START}`, `${SIZEKB}`, `${SOURCE}`, `${REALSRC}`, `${FIRSTDEST}`, `${CLID}`, `${LASTDEST}`, `${SIMPLEDIRECTION}`, `${SIMPLECALLERIDNUM}`, `${SIMPLECALLERIDNAME}`, `${SIMPLEDIALEDNUM}`, `${SIMPLEWHOANSWERED}`, `${SIMPLEWHENANSWERED}`, `${TENANTNAME}`, `${DIDCOMMENT}`, `${DIDEMERGENCYNOTES}`, `${WHERELANDED}`, `${SRCNAME}`, `${WHERELANDEDCIDNAME}`, `${TRANSCRIPT}`, `${SUMMARY}`, `${SENTIMENTSCORE}`, `${SENTIMENTBRIEF}`, `${SENTIMENTDETAILS}`</td><td>`${RE_ID}` contains the recording ID. The Simple CDR variables are loaded from `sc_simplecdr`: `${SIMPLEDIRECTION}` from `sc_direction`, `${SIMPLECALLERIDNUM}` from `sc_calleridnum`, `${SIMPLECALLERIDNAME}` from `sc_calleridname`, `${SIMPLEDIALEDNUM}` from `sc_dialednum`, `${SIMPLEWHOANSWERED}` from `sc_whoanswered`, and `${SIMPLEWHENANSWERED}` from `sc_whenanswered`. The transcript, summary, sentiment score, sentiment brief, and sentiment details are populated only when those AI actions are completed while the recording is uploaded.</td></tr><tr><td>Transcript notification</td><td>`${RE_ID}`, `${TRANSCRIPT}` plus the call, tenant, and Simple CDR variables listed for Recording.</td><td>Used by transcript processing notifications.</td></tr><tr><td>Summary notification</td><td>`${RE_ID}`, `${SUMMARY}` plus the call, tenant, and Simple CDR variables listed for Recording.</td><td>Used by AI summary processing notifications.</td></tr><tr><td>Sentimental analysis notification</td><td>`${RE_ID}`, `${SENTIMENTSCORE}`, `${SENTIMENTBRIEF}`, `${SENTIMENTDETAILS}` plus the call, tenant, and Simple CDR variables listed for Recording.</td><td>`${SENTIMENTDETAILS}` contains the full JSON emotional analysis, including speaker roles, customer sentiment arc, and agent sentiment/tone data when available.</td></tr></tbody></table>

Use `${RE_ID}` when a template needs a recording-specific link, for example `https://cloud.phonecall.co/pbx/transcript.php?reid=${RE_ID}&reidlist=${RE_ID}`.

The transcript, summary, and sentimental analysis background processors also provide `${RE_ID}` when they send their notification email templates.

## Saving and deleting

<table id="bkmrk-taskhow-to-do-it-cre"><thead><tr><th>Task</th><th>How to do it</th></tr></thead><tbody><tr><td>Create</td><td>Select the new action from the Email Templates list, fill the required fields, and select Save.</td></tr><tr><td>Edit</td><td>Open the existing email template, update the needed fields, and select Save.</td></tr><tr><td>Delete</td><td>Before deleting a email template, check call-flow, destination, schedule, report, provisioning, or integration references. Use the row delete action or the form delete action when available, then confirm.</td></tr></tbody></table>