Hi, Have a couple of questions:
1) Would you please help on how to give each email campaign a unique office location module instead of default office location information as drag and drop?
2) Is it possible to add using HubL code of office location information module to another custom module?
If you have Marketing Hub Enterprise you can go to Settings (in your portal header) > Marketing > Email to add and manage multiple footers (office locations). Then in the emails you want to use a different footer you can go to the Settings tab in the email editor and scroll down to the Office Location dropdown to change the location you want to use in the email.
Unfortantely HubSpot has made their default Email Footer module a required module in drag and drop so even if you delete it you won’t be able to send the email. A not-so-great workaround would be to just change the text size and color of the module to “hide” it from view and then add your own module with the office location information.
You can view the required email HubL variables here: HubL variables - HubSpot docs
And all other email HubL variables here:
Hi @Svidya,
- Yes, it’s possible to have a unique footer in each campaign/marketing email. But: HubSpot won’t let you sent emails without the office location hubls for legal/CAN-SPAM reasons. (There are workarounds, but I can’t share them because of … legal reasons
) - Yes, you can create a custom module for the footer(which contains in most cases the location informations)
My tipp: Create a custom email footer module with the needed & desired layout and informations and don’t rely on the default “office location module”. since this module is basically a plain rich-text module, you can even clone and modify it - or - clone it, extract all the informations and paste them into your custom module which will have a lot more functionality.
Also - here’s a list of all Hubls that have to be included in each (marketing) email and a list of all possible variables.
a very basic custom module could look something like this
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<strong>{{ site_settings.company_name }}</strong> - {{ site_settings.company_street_address_1 }}, {{ site_settings.company_street_address_2 }}<br> {{ site_settings.company_city }} {{ site_settings.company_zip }}<br> {{ site_settings.company_state }} {{ site_settings.company_country }}</td>
<td><strong>{{ module.custom_company_name }}</strong> - {{ module.custom_company_street_address_1 }}, {{ module.custom_company_street_address_2 }}<br> {{ module.custom_company_city }} {{ module.custom_company_zip }}<br> {{ module.custom_company_state }} {{ module.custom_company_country }}</td>
</tr>
<tr>
<td>{{ content.campaign }}</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
hope this helps
best,
Anton
Hi,
Thank you for the reply. Actually our requirement is as follows.
1) We have more than 40 office addresses and corresponding social media URLs. That is why we are planning to use a single custom module so that we can add appropriate social media links and select the required addresses in each email.
2) Please check the attached screenshot. Is it possible to get this dropdown in the left column inside email editor by using a custom module?
Thanks
In your custom module you can add a Choice field and add the location names as the options. Then in the module code you can create an if statement that adds the corresponding social media based on the selected option.
For the actual office address though you would have to use the site_settings variables (that pull the information from Settings > Marketing > Email) as these are required by HubSpot to be able to send the email (for CAN-SPAM reasons).
Thank you for the solutions

