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: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,15 @@ The **Email Designer** plugin should appear in the **Plugins** section of Strapi
82
82
83
83
1. Design your template with easy on the visual composer. For variables use [lodash templating language](https://lodash.com/docs/4.17.15#template). **You can leave the text version blank to automatically generate a text version of your email from the HTML version.**
84
84
85
+
Tips: in the template's body is possible to iterate array like this:
@@ -97,11 +106,22 @@ The **Email Designer** plugin should appear in the **Plugins** section of Strapi
97
106
},
98
107
{
99
108
templateId:1, // required - you can get the template id from the admin panel
100
-
subject:`Welcome to My Project`, // If provided here will override the template's subject. Can include variables like `Welcome to <%= project_name %>`
109
+
subject:`Thank you for your order`, // If provided here will override the template's subject. Can include variables like `Thank you for your order <%= user.firstName %>!`
101
110
},
102
111
{
103
112
// this object must include all variables you're using in your email template
0 commit comments