> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trysiren.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Email Template

The Email template editor in Siren allows you to craft, personalize, and manage emails for workflows and campaigns. You can customize content, add dynamic variables, configure advanced sender options, and attach files; all from one place.

<img src="https://mintcdn.com/siren/MPfS1RrCiLsgBPSv/docs/Images/Templates/TemplateEdit/emailTemplate.png?fit=max&auto=format&n=MPfS1RrCiLsgBPSv&q=85&s=478d9cd3b427df608d9316577d046d3b" alt="Email Template" width="1902" height="878" data-path="docs/Images/Templates/TemplateEdit/emailTemplate.png" />

<Note>
  Email templates must use Handlebars syntax for proper variable handling
</Note>

<Tabs>
  <Tab title="Email Template">
    <Steps>
      <Step title="Subject Line">
        Use the **subject** field to define the email's subject that appears in the recipient's inbox. It supports variable substitution for personalization.
      </Step>

      <Step title="Content Editor">
        You can write the body of the email using:

        * **Rich Text(default)**: for basic formatting like bold, italics, link, and lists.
        * **HTML Mode**: for custom layouts, branded designs, and complete control over styling. Use the **Toggle Content Mode** button to switch between these two modes based on your use case.
      </Step>

      <Step title="Insert Variables and Images">
        * Use **Insert Variable** to include dynamic content like `{{order_id}}` or `{{user_name}}`.
        * Use **Insert Image/Logo** to embed brand elements like headers or logos within your message.
      </Step>

      <Step title="Advanced Settings">
        You can fine-tune sender information and delivery behavior using the following optional fields:

        | Setting         | Purpose                                                                            |
        | :-------------- | :--------------------------------------------------------------------------------- |
        | **From Name**   | Display name shown to recipients (e.g., “Siren Notifications”)                     |
        | **From Email**  | Email address used to send the message                                             |
        | **Reply-To**    | Address where user replies should go                                               |
        | **CC / BCC**    | Add carbon or blind carbon copy recipients                                         |
        | **Attachments** | user can attach PDFs, images, docx, and csv, but has to be passed in base64 format |
      </Step>
    </Steps>
  </Tab>

  <Tab title="Loop Template">
    <Steps>
      <Step title="Transaction ID">
        The transaction ID generated after publishing the transactional template in your Loops account.
      </Step>

      <Step title="Data Variables">
        Add variables that will be dynamically replaced in the transactional email template
      </Step>

      <Step title="Add attachments">
        Add attachments that will be sent with the transactional email template
      </Step>
    </Steps>
  </Tab>
</Tabs>
