---
title: "How do I create an email campaign from an HTML file in Sarbacane Campaigns?"
description: "Import your own HTML code (file, web page or copy-paste) and edit it in the Sarbacane Campaigns editor."
url: https://help.sarbacane.com/en/articles/20-how-do-i-create-an-email-campaign-from-an-html-file-in-sarbacane-campaigns
collection: "Usage"
updated: 2026-11-03
language: en
alternates: [fr, es]
---

# How do I create an email campaign from an HTML file in Sarbacane Campaigns?

Import your own HTML code (file, web page or copy-paste) and edit it in the Sarbacane Campaigns editor.

If your email already exists in HTML, import it at the Message step of your campaign with the HTML file option. It then opens in the Sarbacane Campaigns WYSIWYG editor, where you edit it on screen or directly in the code.

## Prerequisites

-   A Sarbacane Campaigns license.
    
-   An email campaign already created (see [How do I create an email campaign in Sarbacane Campaigns?](https://help.sarbacane.com/en/articles/23.md)).
    
-   Your email in HTML: a file, the address of an online page or the code to paste.
    

## Steps

1.  In the breadcrumb at the top of the screen, click the Message step.
    
2.  At the top right of the templates page, open the list of other creation methods, then hover over the HTML file option.
    
3.  In the submenu that opens on the left, choose the source of your code:
    
    -   file, to import a file from your computer;
        
    -   manual entry, to write the code;
        
    -   import a web page, to retrieve an online page from its address;
        
    -   copy / paste, to paste code copied elsewhere.
        
4.  Import or paste your code. The email appears in the WYSIWYG editor.
    
5.  Edit the email on screen or in the source code.
    

**Important** Before saving, click the source code button to display the HTML code again and check that it contains your changes. Otherwise, the changes made on screen may not be saved.

6.  At the top right of the screen, save your campaign, then go to the next step to reach the checks.
    

![](https://staticfiles.gleap.io/gattachments/N7SyDSgPWNQMYd1Mq39DlQmFCpYFtskDOK8rLyINzDDfRlLvGw2TsCSZhxtaa3t52vj7FJNSf1e.png)

## Expected result

Your email appears in the WYSIWYG editor with your layout. The **Advanced settings** are available (tracking, unsubscription, attachment, image hosting…), except saving as a template (see [What is in the advanced settings of an email campaign in Sarbacane Campaigns?](https://help.sarbacane.com/en/articles/21.md)).

## Troubleshooting

### My changes are not saved

Before saving, click the source code button to update the HTML code with the changes made on screen, then save again.

### I cannot save my campaign as a template

Campaigns created from an HTML file cannot be saved as templates. To reuse an email, create it with the EmailBuilder (see [How do I use the EmailBuilder in Sarbacane Campaigns?](https://help.sarbacane.com/en/articles/10.md)).

### My email does not display well in some email clients

The rendering depends on your code. Technical support helps you use Sarbacane Campaigns, but does not develop or fix HTML, CSS or JavaScript code.

## Related articles

-   [What is in the advanced settings of an email campaign in Sarbacane Campaigns?](https://help.sarbacane.com/en/articles/21.md)
    
-   [How do I use the EmailBuilder in Sarbacane Campaigns?](https://help.sarbacane.com/en/articles/10.md)
    
-   [Create a plain text email campaign on Sarbacane](https://help.sarbacane.com/en/articles/22.md)
    
-   [How to manage image hosting for my email campaign](https://help.sarbacane.com/en/articles/17.md)
