Nov 16, 2022 6:32 AM
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
Solved! Go to Solution.
Nov 16, 2022 11:40 AM
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 🙂
Nov 16, 2022 1:22 PM
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: https://knowledge.hubspot.com/email/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!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Nov 16, 2022 1:22 PM
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: https://knowledge.hubspot.com/email/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!
Karsten Köhler |
![]() | Did my post help answer your query? Help the community by marking it as a solution. |
Nov 22, 2022 2:17 AM
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!😄
Nov 16, 2022 11:40 AM
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 🙂