How to export HTML emails from Figma to Ongage using Emailify
Follow along with this step by step Figma tutorial video.
Steps
- Open the Emailify Figma plugin from Resources or saved Figma plugins, then create a new Emailify container for your email design.
- Add your email content, then insert the Ongage footer component so the unsubscribe link and address tag are populated automatically.
- Use the Preview button to check the responsive HTML preview on mobile and desktop, and adjust mobile overrides if needed.
- Click Export HTML, choose the Ongage platform integration, enter the subject line and preheader, then export and download the zip file.
- Unzip the download and open the index.html file from the email template folder to copy the full HTML source.
- In Ongage, create a new email campaign, paste the same subject line, switch to the HTML tab, replace the existing HTML with the copied index.html code, and keep Auto beautify HTML unchecked.
- Save or continue the campaign, add your lists and other campaign fields, optionally send a test, and schedule the campaign when ready.

Published
Used in this video
Emailify
ăĄăŒă«
Stop hand-coding HTML emails.
Design responsive emails in Figma and export production-ready HTML for popular email platforms.
135k+ installs
Video Transcript
Today Iâm going to be showing you a quick tutorial on how to export your HTML email designs from Figma to the Ongage email marketing platform using the Emailify Figma plugin.
To get started, go to our Figma file, click on the resources icon at the top here, and search for Emailify. Under the Figma plugins tab, click on the Emailify result. You can run the Figma plugin by either clicking on this run button up here, or Iâd recommend clicking on this little save icon here, which lets you run the plugin from your saved Figma plugins list. Iâve already clicked on that save icon, so Iâll go to my canvas, right-click anywhere, go down to Figma plugins, then saved Figma plugins, and click on Emailify. This will run the Figma plugin we saved a second ago.
If youâre new to the plugin, it helps you design HTML emails in Figma, which you can then export to production-ready code automatically. In this case, weâre uploading it to the Ongage platform. Iâm creating a new email and calling it âexample template.â Click on the âadd new Emailify containerâ button to start adding components and design elements into the email frame.
Iâm not going through all of the design features in the Figma plugin today. If youâre new to the plugin and curious to know how to use all the features, Iâd recommend checking out a couple of the other videos on the YouTube channel or going through the Emailify documentation site. For today, Iâll keep it simple and add a few component blocks, which we can then upload to the Ongage platform.
Iâm adding a few bits of content here without customizing any of it today. Once youâre happy with your design and youâve customized it with your content and branding, click on the footer option. You have this footer tab over here; click on that and scroll down until you reach the letter âO.â Youâll notice an option for the Ongage platform. Click on the Ongage footer component, which will automatically add a footer with the unsubscribe link and address tag automatically populated.
You can see the address tag here, which will get pre-populated later. Importantly, we also have the navigation unsubscribe link. Click on that link, then click on the settings button in the Figma plugin, and youâll see itâs automatically pre-populated with the unsubscribe link for the Ongage platform. You can customize that footer however you like, but itâs worth going through that footer option to quickly add those links without finding them each time.
Now that weâve got our design in Figma, we need to preview it. Click the preview button in the Figma plugin, which loads a real HTML preview of what the email will look like on mobile and desktop. Itâs responsive, and if you want to add some overrides to any of these elements, click on the element, go to the settings panel, and you can change things like font size, padding, or other bits and pieces for your mobile style overrides.
Iâm not going through all of these in detail today, but theyâre available for you to customize the design on mobile. Once youâre happy with the preview and think it looks good, close that preview window, then click on the export HTML button. Click on export HTML, change the default HTML email option, scroll down to the platform integration section, and find the letter âO.â Click on the Ongage option. Now that weâve selected the Ongage option, add our subject line. Iâm calling this subject âtest,â and also our preheader. The preheader text gets added after your subject line when your customer or user opens that email in their client, like Gmail or Outlook. Put in whatever preview or preheader text you want to include here, and it gets automatically included in the HTML.
Once youâve added those, click on the export for Ongage button. This automatically generates the production-ready HTML, uploads those images, and gives us a zip file to download. Once the confirmation message pops up, click on the download your zip file button, then save it anywhere. Iâm saving it to my desktop. If you unzip that file, youâll get a folder with a couple of different files. The preview file is just a preview HTML file that you can use to check out all of your emails in one place. For example, if we open that up, you can see what it looks like. Drag it in here, and you can see itâs a nice little preview page showing the desktop and mobile version. This is really good for reviewing the emails.
For actually uploading them, the file weâre interested in is inside of this example template folder. Youâll notice that itâs named the same as what the frame was called in Figma. The frame was called âexample template,â so your folder will be named whatever youâve named the template. The file that contains our HTML template is this index.html file. We can have a look at that by dragging it into the browser. Weâre going to come back here in a second to copy-paste that HTML into Ongage.
The next step is to log in to your Ongage account. If youâve logged into your dashboard, go to the campaigns section. Click on the campaigns menu item, then click on the new campaign button at the top right. Click on the email option. Once the new email screen loads up, give your message a name. Iâm calling this one âtest email message for today.â Populate things like your sender name, addresses, and all that stuff. Fill that out as needed, then click on the next button down here. This brings us to our new email page, where we can add things like the subject line and our HTML.
Copy the subject that you added in the Figma plugin and paste it into Ongage. The reason for that is that it adds it into your title tag, but itâs also needed to send that out through Ongage. Just make sure those are the same. If youâve already added your preheader text in Emailify, you donât need to add it again in Ongage. If you do add it again, it gets doubled up. I recommend just doing it in the Emailify Figma plugin and not bothering about leaving this field populated.
Now that weâve got those filled out, swap this over to HTML. It will be WYSIWYG by default; click on the HTML tab. Now weâve got access to the raw HTML content. Going back to the file we opened a moment ago, which was the index.html file, take that index.html file, open it in a code editor or your browser, right-click in your browser, go down to view page source, and click on that. Copy and paste all of that HTML from this file. Select all of it, copy it to your clipboard, then go back into Ongage. Delete all of this HTML content, and paste in our own HTML instead.
Iâve pasted all of that in, and it looks really good. Importantly, uncheck this âAuto beautify HTMLâ option. You donât need to turn that on, just in case it messes up any of the HTML code, which weâve already gone ahead and minified for file size optimization. Now that weâve added our HTML, proceed by either clicking on save or clicking on next. Iâm clicking on next, and this saves that template for us. You can see the email was successfully updated, and it also created a text version from the HTML automatically. This looks really good.
The last thing we need to do is give our campaign a name. Call this campaign name whatever you want. Iâm calling it âcampaign name test.â Add all these other fields yourself, then start adding whatever lists you want to include for your campaign. If youâre a user of the Ongage platform, youâve probably gone through this step before, so I wonât run through all of that today. You can also send a test to yourself. This is probably a good idea if you want to check out what the HTML looks like, or use a service like litmus.com, which lets you send a test to Litmus and see how it looks on all the different platforms.
This is basically all good to go. Once youâve added your list, go down here and click on schedule. This takes you to the final step, allowing you to schedule the campaign. You can either send it out immediately or schedule it for a future date. Thatâs basically it. Iâm not going to send this out for now. I just wanted to run through the design part mostly, to show you how to import your custom HTML that we exported from Figma into the Ongage platform. This is the best way to go about it: copy and paste the source code from the index.html file into the HTML tab in Ongage. This allows you to have a custom HTML email.
You can also click on the WYSIWYG tab, which allows you to change the text. You can change this to something like that, and make small tweaks if needed. For big design changes, I would personally go back to the Figma file, change them there, re-export the HTML, and copy-paste that index.html file into the Ongage HTML tab. For quick text tweaks, you can use the WYSIWYG editor, which should be fine too.
I hope this has been helpful. If youâre an Ongage user wanting to create custom HTML emails from Figma and export them for the Ongage platform, hopefully, this will be a workflow improvement. Thank you, as always, for watching. Weâll be back soon with more Figma tutorials like this one shortly.

Adam Brock
Founder & CEO of Hypermatic


