Skip to main content

Email templates

How to use the email templates:​

{
example_email: {
from: 'POWr <[email protected]>',
template: 'campaign_email_template_v2', // <- be sure to assign this file as template
recipients: {
signed_up: 30.minutes.ago,
email_subscription_active: true,
onboarding_emails_active: true,
with: { apps: { saved: true, active: true } },
without: 'pro_subscriptions',
platform: [ 'weebly-integrated', 'weebly', ],
},

// put template code here

},
}

How to build new layouts/templates:​

{
example_email: {
from: 'POWr <[email protected]>',
template: 'campaign_email_template_v2',
recipients: {
signed_up: 30.minutes.ago,
email_subscription_active: true,
onboarding_emails_active: true,
with: { apps: { saved: true, active: true } },
without: 'pro_subscriptions',
platform: [ 'weebly-integrated', 'weebly', ],
},
emails: [
{
subject: 'This is the preheader for template one',
preheader: "This is the preheader for template one",
elements: [ //note: all email elements have to be within these brackets

//Elements go here separated by commas

], //end elements bracket
},
]
},
}

How to use grouped elements:​

Every time you use group { group: { }}, you have to add an additional elements [], array inside the group.

{
example_email: {
from: 'POWr <[email protected]>',
template: 'campaign_email_template_v2',
recipients: {
signed_up: 30.minutes.ago,
email_subscription_active: true,
onboarding_emails_active: true,
with: { apps: { saved: true, active: true } },
without: 'pro_subscriptions',
platform: [ 'weebly-integrated', 'weebly', ],
},
emails: [
{
subject: 'This is the preheader for template one',
preheader: "This is the preheader for template one",
elements: [ //note: all email elements have to be within these brackets
{ group: {
elements: [ //note: have to wrap elements inside groups in the elements bracket

//Elements go here separated by commas

], // end elements bracket
}
},
], //end elements bracket
},
]
},
}