HubL code in HTML

Hi!

We have created an e-mail with a QR code in de HTML area.

Everything is working ok, but when I try to send them, appears a warning:

HTML is an HTML module and cannot contain HubL code

This is the code that we are using:

Could you please help me? Do you know if it’s relevant? Because, apparently, I can send the e-mail with any problems but I’m worried by the warning and his impact.

Thank you all

Hello @msaez, the error is quite self explanatori. You are using HubL in your module and that’s not allowed as the error says.

I see in your HTML that HubL is being used in the src property of your image:

{{contact.hs_object_id}}

Anyway, if you can send the email, did you try sending it first to some test accounts for example? If it works, I don’t think the error will prevent anything BUT I would recommend you to test it as much as you can since I’m not an email expert, I’m a CMS developer :slightly_smiling_face:

Hi @msaez,

Have you tried using a rich text module instead of a HTML module? It could be a quick workaround.

If that doesn’t work either, the so-called programmable email feature might be needed, available in Marketing Hub Professional and Enterprise, allowing you to use advanced HubL syntax to fully personalize the content of your emails: Create programmable emails

(It would be a matter of cloning an existing module and enabling the programmable email beta for this module. All default modules cannot be enabled that way, so cloning a default module should do the trick.)

Hope this helps!

Finally we are going to send them anyway because it seems that everything is working ok despite of the error.

Thank you for your help!:grinning_face_with_smiling_eyes:

hi, did everything work ok when you sent this? the field pops up for me in the preview tests, but im worried it wont work in the live email