If you're using HubSpot, you might love Bardeen's automation tools. They save time by automating tasks like exporting contacts and creating emails.
Exporting HTML emails from HubSpot is a crucial skill for marketers and developers looking to utilize their email designs outside the platform. By extracting the HTML code, you can repurpose and integrate your emails across various marketing channels and tools. In this step-by-step guide, we'll walk you through the process of exporting HTML emails from HubSpot, including accessing the code, using browser tools, and saving the HTML for external use.
Introduction to HTML Email Export from HubSpot
Exporting HTML emails from HubSpot is a vital skill for marketers and developers who want to use their email designs outside the platform. Here are the key reasons and benefits:
Import templates into other email marketing systems
Share email source code with developers for troubleshooting
Exporting HTML empowers you to extend the reach and versatility of your HubSpot emails, adapting them for diverse marketing initiatives beyond the confines of the platform.
Accessing Email HTML from the HubSpot Platform
To access the HTML code of a sent email in HubSpot, follow these steps:
Log into your HubSpot account and go to the Marketing > Marketing Email section.
Find the email you want to export and click on its name to open the email details page.
Locate the email preview and hover over it. Click the "View email" option that appears.
This will open a web version of your email in a new browser tab or window.
Now that you have the web version of your email open, you can access its HTML source code:
Right-click anywhere on the email page and select "View Page Source" from the context menu.
This will display the raw HTML code of your email in a new tab.
To copy the HTML, simply highlight all the code, right-click, and choose "Copy".
Most modern web browsers offer built-in developer tools that allow you to view and copy the HTML code of a web page. Here's how to use these tools to extract HTML to spreadsheets:
Right-click anywhere on the web page and select "View Page Source" from the context menu. This will display the page's HTML source code in a new tab.
To copy the entire HTML code, simply select all the text (Ctrl+A or Cmd+A), then copy it (Ctrl+C or Cmd+C).
Paste the copied HTML into a text editor or HTML file for further use or modification.
Alternatively, you can use the browser's "Inspect Element" feature for more precise HTML extraction:
Right-click on a specific element of the web page and choose "Inspect" or "Inspect Element" from the context menu.
This will open the browser's developer tools, highlighting the selected element's HTML code.
In the developer tools, right-click on the highlighted HTML element and choose "Copy" > "Copy outerHTML". This will copy the element's HTML, including its inner content and attributes.
These techniques work in popular browsers like Chrome, Firefox, Safari, and Edge, making it easy to extract HTML code for use outside the browser.
Copying and Saving HTML Email for External Use
Once you've extracted the HTML code from your browser, you can easily copy and save it for external use:
After highlighting the HTML code in the browser's "View Page Source" or developer tools, use the keyboard shortcut Ctrl+C (Windows) or Cmd+C (Mac) to copy the selected code to your clipboard.
Open a text editor like Notepad (Windows) or TextEdit (Mac), then paste the copied HTML code into a new document using Ctrl+V (Windows) or Cmd+V (Mac).
To save the HTML file, click "File" > "Save As" in the text editor. Choose a location on your computer to save the file, then add ".html" to the end of the file name (e.g., "email_campaign.html"). Select "All Files" or "HTML Files" as the file type, then click "Save".
Exporting HTML emails from HubSpot can present some challenges, but most have straightforward solutions:
Formatting issues: When copying HTML from the browser, the code may not maintain its original formatting. To fix this, use a code beautifier tool or manually format the code in a text editor before saving the file.
Missing images: If your email contains images hosted in HubSpot, they won't be included in the exported HTML file. Download the images separately and update the image paths in the HTML code to reference the local files.
Broken links: Links in the exported HTML may not work properly if they use relative paths or HubSpot-specific tracking. Review the HTML and update any broken links to use absolute URLs.
Styling discrepancies: Some styles may not render correctly outside of HubSpot due to differences in email clients. Test the exported HTML in various email clients and make necessary adjustments to ensure consistent appearance.
If you encounter issues not listed here, try these general troubleshooting tips:
Copy the HTML again from the browser, ensuring you've selected the complete code.
Paste the HTML into a new file and double-check that no characters or tags were lost in the process.
Validate the HTML using an online tool to identify and fix any coding errors.
By addressing these challenges, you can ensure the exported HTML email maintains its integrity and renders correctly outside of HubSpot.
Advanced Applications and Considerations
Exporting HTML emails from HubSpot opens up a world of possibilities for integrating with other marketing tools and email platforms. By saving the email as an HTML file, you can:
Import the design into other email service providers (ESPs) like Mailchimp, Campaign Monitor, or Constant Contact.
Use the HTML as a template for future emails in other platforms, maintaining a consistent brand style.
Combine exported HTML emails with marketing automation tools to create complex, multi-step email campaigns.
By understanding these considerations and using exported HTML emails responsibly, you can expand your marketing efforts and create cohesive, effective campaigns across multiple platforms.
SOC 2 Type II, GDPR and CASA Tier 2 and 3 certified — so you can automate with confidence at any scale.
Frequently asked questions
What is Bardeen?
Bardeen is an automation and workflow platform designed to help GTM teams eliminate manual tasks and streamline processes. It connects and integrates with your favorite tools, enabling you to automate repetitive workflows, manage data across systems, and enhance collaboration.
What tools does Bardeen replace for me?
Bardeen acts as a bridge to enhance and automate workflows. It can reduce your reliance on tools focused on data entry and CRM updating, lead generation and outreach, reporting and analytics, and communication and follow-ups.
Who benefits the most from using Bardeen?
Bardeen is ideal for GTM teams across various roles including Sales (SDRs, AEs), Customer Success (CSMs), Revenue Operations, Sales Engineering, and Sales Leadership.
How does Bardeen integrate with existing tools and systems?
Bardeen integrates broadly with CRMs, communication platforms, lead generation tools, project and task management tools, and customer success tools. These integrations connect workflows and ensure data flows smoothly across systems.
What are common use cases I can accomplish with Bardeen?
Bardeen supports a wide variety of use cases across different teams, such as:
Sales: Automating lead discovery, enrichment and outreach sequences. Tracking account activity and nurturing target accounts.
Customer Success: Preparing for customer meetings, analyzing engagement metrics, and managing renewals.
Revenue Operations: Monitoring lead status, ensuring data accuracy, and generating detailed activity summaries.
Sales Leadership: Creating competitive analysis reports, monitoring pipeline health, and generating daily/weekly team performance summaries.