You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/engage/content/email/template.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,14 @@ You can send test emails before you include a template in marketing campaigns.
47
47
- Profiles that you send test messages to must have a userId in Segment.
48
48
5. Select **Send test email**.
49
49
50
+
{% comment %}
50
51
> success ""
51
52
> When you send a test message, the trait must be valid for the field it's being used in. For example:
52
53
> - If you use `profile.traits.first_name` in the **From sender** field, it must be a valid username.
53
54
> - If you use `profile.traits.email` in the **Reply to email** field, it must be a valid email address.
54
55
56
+
{% endcomment %}
57
+
55
58
> info ""
56
59
> You can also test email templates directly from a [Send an Email step](/docs/engage/journeys/build-journey/#send-an-email) in Journeys.
57
60
@@ -63,6 +66,15 @@ As you configure the template, click **Merge Tags** and select the profile trait
63
66
64
67
You can also add merge tags in the heading or body text as you design an email with the [Drag and Drop](/docs/engage/content/email/editor/) or [HTML](/docs/engage/content/email/html-editor/) editors. Engage supports [liquid templating](https://liquidjs.com/tags/if.html){:target="blank"} to create dynamic content in the email design editor.
65
68
69
+
### Use liquid statements with an image URL
70
+
71
+
If you're using the [image content module](/docs/engage/content/email/editor/#add-content-modules) in the Drag and Drop Editor, you can't use liquid statements in the **Image URL** field.
72
+
{% raw %}
73
+
To use liquid statements with an image, Segment recommends using an [**HTML block**](/docs/engage/content/email/editor/#add-content-modules) with the following syntax: <br>
74
+
`<img src=“{{profile.traits.imageLink | default: '<insert your default URL here>'}}”`, where `profile.traits.imageLink` is an example profile trait representing personalized image links for each recipient.
75
+
76
+
{% endraw %}
77
+
66
78
> info ""
67
79
> To learn more about profile traits, visit Segment's [Computed Traits](/docs/engage/audiences/computed-traits) and [SQL Traits](/docs/engage/audiences/sql-traits/) documentation.
0 commit comments