Build and save email templates visually. Kroxt features a Handlebars layout engine to parse bracket attributes dynamically.
Design layouts in HTML, and bind variables like `{{name}}`. When triggered, the variables dictionary passed via the SDK is compiled and delivered seamlessly.
// Trigger a template named 'welcome-onboarding' defined in your dashboard
await baas.communication.sendEmail({
to: "newuser@gmail.com",
template: "welcome-onboarding",
variables: {
name: "Alex Doe",
couponCode: "WELCOME50",
},
});