Skip to content

Instantly share code, notes, and snippets.

@interactiveRob
Last active April 5, 2018 18:45
Show Gist options
  • Save interactiveRob/1692dee095b13f7c1b8e96192d8f02a1 to your computer and use it in GitHub Desktop.
Save interactiveRob/1692dee095b13f7c1b8e96192d8f02a1 to your computer and use it in GitHub Desktop.
Hubspot Dynamic Subject Line
<!-- Hard Coded Subject Line for Client Approval-->
<table bgcolor="#ffffff" width="100%" style="color: #ffffff;max-width:100%; min-width: 320px;" cellspacing="0" cellpadding="0">
<tr>
<td style="padding: 40px 30px; width: 100%; max-width: 100%;">
<table align="center" width="100%" style="color: #ffffff;max-width:650px; min-width: 320px;" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align: left; font:16px/18px Arial, Helvetica, sans-serif; color:#666666;">
<b>Subject:</b> {{ content.subject }}
</td>
</tr>
<tr>
<td style="padding-top: 15px; text-align: left; font:14px/16px Arial, Helvetica, sans-serif; color:#666666;">
<b>Preview Text:</b> {% text "preview_text" label="Preview Text", value="", no_wrapper=True %}
</td>
</tr>
</table>
</td>
</tr>
</table>
@interactiveRob
Copy link
Author

you can use this HTML Email markup in Custom HTML Hubspot Templates to show a white bar with your preview text and subject line. Useful for getting approval of subject lines in a web based preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment