On this page
Import your own HTML
Paste HTML you have built elsewhere into the editor and carry on editing it in MailMachine.
If you've built an email's HTML elsewhere, you can paste it straight into MailMachine and carry on editing it in the HTML editor. This guide covers importing it.
Import your HTML
- When creating a new campaign, choose Start with your own code.
- Paste your code into the editor.
- Click Upload and Edit.
From there you can edit it in the HTML editor, adjust as needed, and save it as a template to reuse.
Best practices
- Use clean, valid HTML, and inline your CSS - many email clients ignore external stylesheets.
- Include responsive elements for mobile.
- Remove JavaScript; it isn't supported in email.
- Keep the file size reasonable for faster loading.
Troubleshooting
It looks different after import - the usual cause is CSS that isn't inline; run your HTML through a CSS-inlining tool first, and avoid unsupported HTML5/CSS3 features and JavaScript.
The import button is disabled - your code can't be empty, watch for unclosed tags, and keep within the size limit (around 100 KB).
Images are broken - use absolute URLs (https://..., not /images/...), make sure the host allows hotlinking, and use web formats (JPG, PNG, GIF).
Responsive design isn't working - check your media queries are well-formed and supported, use table-based layouts as a fallback, and test on real devices.
Always test before sending - see Testing your campaign. Stuck? Open a support ticket.