Site icon Email Uplers

How to Upload Emails to Your HubSpot Account: A Step-by-Step Guide

How to Upload Emails to HubSpot

HubSpot’s email marketing tool lets you create and send personalized emails to your contacts. It’s integrated with HubSpot CRM, so you can tailor your messages based on the contact data you’ve collected. And with the help of custom HTML integration in HubSpot, you can create fully customized email templates with more control over the design and functionality than what is possible with the standard drag-and-drop builder.

In this blog post, our HubSpot experts guide you through the process of uploading your emails to your HubSpot account.

There are three methods of doing it. We’ll kick off in the following order:

Method 1: HubSpot Basic 

In this method, you only need to add the live HTML file to the template and then create the email. In addition, do NOT change any text, images, or other design elements. Here are the steps to upload your email to HubSpot:

Note: The <tr> must be added in the footer; otherwise, the template will not be published.

<tr>
 <td valign="top" align="center" style="font-size:13px; font-family:Arial, sans-serif; color:#303030; line-height:16px;"> {{site_settings.company_name}}, {{site_settings.company_street_address_1}}, {{site_settings.company_city }}, {{site_settings.company_state}},{{ unsubscribe_link }}</td>
 </tr>

Method 2: HubSpot Advanced (HubL)

In HubSpot email marketing, HubL is a templating language that allows you to create customized, dynamic emails. 

In HubL, you need to edit text, images, and other elements. You may also need to repeat or delete sections. 

Sections cannot be dragged and dropped to the top or bottom. Follow these steps to upload your email to HubSpot using the HubL method: 

{% linked_image "header_logo [ Given Unique Name ]" label='header_logo [ Given Unique Name ]', link="#", open_in_new_tab=True, alt='As per the image Alt', src='https://dummyimage.com/160x40/808080/ffffff?noresize', width='160', style='border-width:0px;border:0px; width:160px; max-width:160px; display: block; font-size:20px; line-height:24px; color:#000000; font-family:Arial, sans-serif; text-decoration:none;' %}

{% rich_text "text_02 [ Given Unique Name ]" label="text_02 [ Given Unique Name ]", no_wrapper="True", html="Headline text goes here" %}

{% set my_options = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] %}
                    {% choice "repeats1" label="Section Name", value="1", choices="{{ my_options }}", export_to_template_context=True %}
                    {% for options in my_options %}
                    {% if loop.index <= widget_data.repeats1.value %}

             ------------<table>------------------

{% endif %}
{% endfor %}

Note that in the above condition, if you need to repeat multiple sections, you should change the choice ‘repeats1’ to { ‘repeats2’, ‘repeats3’, ‘repeats4’ } as per your section repeat.

{% set my_options = [0, 1] %} 
                    {% choice "repeats1" label="Section Name", value="1", choices="{{ my_options }}", export_to_template_context=True %}
                    {% for options in my_options %}
                    {% if loop.index <= widget_data.repeats1.value %}

             ------------<table>------------------

{% endif %}
{% endfor %}

Note that in the above condition, if you choose ‘0,’ the section will be deleted. To display the section, you need to choose ‘1’.

As before, the <tr> must be added in the footer; otherwise, the template will not be published.

<tr>
 <td valign="top" align="center" style="font-size:13px; font-family:Arial, sans-serif; color:#303030; line-height:16px;"> {{site_settings.company_name}}, {{site_settings.company_street_address_1}}, {{site_settings.company_city }}, {{site_settings.company_state}},{{ unsubscribe_link }}</td>
 </tr>

You can see the entire process in action below.

https://edmimages.net/edm/2018-LiveImages-EDM/blog/resources/uploads/upload_images/do_not_delete_files/Huble_advance_guide_video.mp4

Method 3: HubSpot COS

You need to edit images, text, background color, and text color. You can also add, delete, and drag-and-drop sections to the top or bottom. 

Importantly, you must code with a width of 600px. Please check to ensure the design width is 600px. 

Now, there are two ways to upload your email to HubSpot COS

  1. All module in template
  2. All module in email (Choice and Group field)

Let’s understand each method in detail. 

1. All Module in Template

In the first method, after finishing up the code, follow the steps shown in the video to make the local images live, and then integrate the COS.

https://edmimages.net/edm/2018-LiveImages-EDM/blog/resources/uploads/upload_images/do_not_delete_files/COS_All%20Module%20In%20Template.mp4

2. All Module in Email

You need to put the editable content into one module and use group fields to organize it. Otherwise, all editable fields will be displayed on the left side of the email editor, making it hard for the client to identify each area of the module.

Additionally, you need to use the choice functionality to create a dropdown selector, allowing the client to select the modules to add. 

After reviewing and publishing the images, define the main group area and ensure that the modules are in HTML. Use concise names when uploading and avoid using very long ones.

{% for item in module.all_modules %}
<table align="center" width="600">
{% if item.module_type == "banner_section" %}
<tr>
</tr>
{% endif %}
{% if item.module_type == "text_section" %}
<tr>
</tr>
{% endif %}
</table>
{% endfor %}

Take a good look at the following screenshot for better understanding.

Coming now to editable tags, the process of giving editable tags to images, text, and other editable areas differs slightly from the normal COS method.

If you copy the variable from the screenshot above, it will provide you with the following value:

{{ module.text }}

However, the value we need to provide depends on your module name, which we defined in HTML. You need to remove “module” and replace it with “item.module_name”:

{{ item.text_section.text }}

module = item.module_name

We recommend you to watch this video to understand the process in depth.

https://edmimages.net/edm/2018-LiveImages-EDM/blog/resources/uploads/upload_images/do_not_delete_files/COS_using_choice_and_group_field_N.mp4

It’s crucial to assign the correct variable to the editable area. Arrange the groups and choice selector as demonstrated in the video. Also, it’s important to follow the upload method exactly as shown in the video. 

Here are the steps: 

Note: In all the three HubSpot methods you must add the following tags, or the template will not get published:

Get More Insights into HubSpot Email Marketing

For more information on HubSpot email marketing, please visit our blog.

We are also HubSpot-certified experts. We can help you with end-to-end HubSpot email marketing. From campaign deployment to automation management to migration to HubSpot, we can do it all. Get in touch today!

Exit mobile version