# Import a custom HTML email

Our email editor allows you to import your own HTML emails.

{% hint style="info" %}
**What you'll need**

Template code for your email, in one of the following formats:

* Code you can copy and paste directly in
* An HTML file
  {% endhint %}

### Import an HTML Email Template

1. Go to **Content** >  **Email templates** > **Create email template** > **Import template**.

<figure><img src="/files/pULQgA7aD2dtntZbiC3Q" alt=""><figcaption></figcaption></figure>

2. Name your email and choose a default locale.
3. Click **Get started**.
4. Paste or import your email HTML code. We'll show you a preview of your email.
5. Upload any images or files that are referenced your template.
6. Click **Create Template** to complete the process and create your project.

### Edit and Use an Imported HTML Email

Unlike emails designed from scratch, or from a prebuilt template, HTML emails can only be edited by making changes to the source code itself.

1. From the email editor, switch the toggle from **Preview** to **Editor**.
2. Make your edits to the source code.
3. Switch the toggle from **Editor** back to **Preview** to see your changes.
4. Once your template is done, click **Publish** to make it ready to use.

### Use Variables in an HTML Email

If you're using custom variables in your HTML email, configure them using the **Custom Variable** panel in the right-hand side.

For more advanced features and a deeper dive into complex templating techniques, please visit the [Advanced Email Templating](/applications/content/email-templates/concepts/dynamic-content.md) section.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bird.com/applications/content/email-templates/how-to/import-a-custom-html-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
