MailChimp can convert properly formatted ZIP files that contain your custom HTML and assets into functional campaign templates. Upload a ZIP file in the Campaign Builder to create your campaign from your own HTML.
In this article, you'll learn how to upload a ZIP file that contains template HTML code and assets.
Tips for Creating Your ZIP File
Use the checklist below to be sure your ZIP file is properly formatted and ready for upload.
- Include only one HTML file in your ZIP file. If you have more than one HTML file, we'll use the first one we find.
- Make sure your HTML file's character encoding is UTF-8.
- Format all images as JPG, JPEG, PNG, or GIF.
- Include any PDFs or other documents to host with MailChimp that are linked in your template code.
- Place all images and files in the root directory of the ZIP file and not in subfolders. We'll upload all your images and files to the Content Manager and create absolute paths for you when we convert your ZIP.
Upload ZIP File to a Campaign
To upload your custom campaign template from a ZIP file, follow these steps.
- In the Content section of the Campaign Builder, click Design Email.
- On the
Template step, click
Code Your Own, and then select
Import from ZIP.
- Click Browse, and choose the ZIP file from your computer.
After the file is uploaded, you'll be taken to the Design step, where the Code tab displays the code we converted from your ZIP file. Content in the Code tab is fully editable.
Preview your campaign or send a test email before you send to your contacts.
Troubleshooting the Upload
If you see the error message The archive was empty or otherwise corrupt when uploading the file, there is an issue with the file. Take a look at the troubleshooting tips below to make sure your ZIP file is compatible for the upload.
- File Name
Spaces or unusual characters in the filenames can cause problems when you import. We recommend that you limit filenames to contain only letters, numbers, and hyphens.
- Relative Paths
When you upload a ZIP file, we'll create the absolute paths for you. We can't pull in images or files from other folders or subfolders, so use only the filename in your code, with no location information in your link sources.
- Case Sensitivity
The upload is case sensitive, so your code must match your filenames exactly.
- HTML Errors
Review your code and run your HTML through a validator to help you catch any problems or errors.