Subject line in email from HubDB - programmable emails

Hi everyone,
We’ve prepared automated programmable emails using HubDB - 1 email in 16 languages. The table is ready, the custom module with content is working, everything is connected to the customer’s preferred language - great :slightly_smiling_face:

Our goal is to have 1 table to manage all content (for this process) - email body, footer and subject. So when I need to change the subject, I’ll only do it in the table.

And the question is.. how do we do something like this for subject line in emails? Is this possible or do I have to use properties and workflows (and we can’t used the emails subject from the HubDB table)?
Anna

Hi @AKordalska and welcome, it’s a pleasure to have you here! :orange_heart:
Thanks for reaching out to the HubSpot Community!
For reference, here are some resources on the topic:
- Create emails with programmable content
- HubL functions
I’d love to put you in touch with our Top Experts: Hi @sylvain_tirreau, @Anton and @MichaelMa can you think of workarounds to help @AKordalska, please?

Thanks so much and have a lovely day!
Bérangère

Hey @AKordalska,

if you’re using the drag&drop editor for your emails and just want to put a programmable module into the template, there’s unfortunately no way how you can access the email title.
Something you can do is create HTML templates and put something like

<title> {{ hubdb_table.email_subject }} </title>

into the <head> tag.

best,

Anton

Yes, I used the drag&drop module - thank you!
I have one more question - I have a ‘footer’ but in HTML. I would like to add it to HubDB and generally have it in a custom module. I added a new column as a rich text and it looks like it should inHubDB, but when I add it to a custom module it doesn’t work.

Is it possible to put a piece of HTML into HubDB and then into a custom modul?

Hey @AKordalska,

what are you trying to achieve?