How to import an HTML template
If you already have your email design created outside Acumbamail, you can import it as a template instead of rebuilding it. You can import it from a URL, by pasting the code, by uploading the HTML file, or by uploading a ZIP file with the HTML and its images.
An imported template is edited with the code editor, not with the block editor. If you prefer to work with blocks, it is better to start from a template in the gallery and adapt it to your design.

In this article
1. What you need before you start
What you need before you start
- Your template’s HTML, in a file, at a public URL, or copied.
- An unsubscribe link in the design. It is mandatory, and if the HTML does not include it, you can add it later in the editor.
- HTML without JavaScript. Email clients do not execute it, so a template with scripts cannot be imported.
Import a template
In Emails, go to Templates and click Import template. Choose one of the four options, enter the template name, and confirm. When finished, the template opens in the code editor and appears in My templates.
You can also import when creating a campaign, from the step where you choose the template.
From a URL
With From URL, paste the address of the page where your template is located. It must be an https address accessible from the internet and no larger than 10 MB. Images with relative paths are converted into full addresses for that website, so they must remain published there.
By pasting the code
With Paste HTML, paste the full template code. This is the most direct option if you are copying the HTML from another tool. The images must be published on the internet, with their full address.
By uploading an HTML file
With Upload HTML, choose the .html or .htm file from your computer. As when pasting the code, the images must be published on the internet.
By uploading a ZIP with images
With Import ZIP, you can upload the template with its images, which Acumbamail hosts for you. The ZIP must contain a single HTML file and a folder with the images in JPG, PNG, or GIF format, linked from the HTML with relative paths. Avoid spaces, accents, and special characters in file names.

Edit the imported template
The imported template opens in the code editor, which displays the design and lets you edit the text directly or switch to the source code. From its toolbar, you can insert the unsubscribe link, the link to view the email in the browser, and personalization tags. To save, click Save and return to templates.

When saving, the system checks that the template has the unsubscribe link and that its HTML is valid. If something is missing, the warning indicates it and the template is not saved until it is corrected.
Frequently asked questions
-
When importing, it says the HTML code is not well-formed
This is usually due to unclosed tags or HTML designed for a web page rather than for an email. Review the code with the program you used to create it or ask the person who laid it out for an email version. If it contains JavaScript, the warning is different and you need to remove it.
-
Can I import a design as an image or PDF?
No. The template must be in HTML. If you only have the design as an image, you can recreate it with the template editor starting from a template in the gallery.
-
Images are not displayed after importing
When importing from a URL, pasting the code, or uploading the HTML, the images remain hosted where they were, so they must be published on the internet with their full address. If you have them on your computer, use the ZIP option so Acumbamail can host them.
-
Can I edit an imported template with blocks?
No, imported templates are edited with the code editor. To work with blocks, you need to create the template in the template editor.
-
Can I export a template to HTML?
There is no option to download it. If you need its code, open it in the web version of a sent campaign and copy the source code from your browser.