Broadcasts
A broadcast is one message sent to an audience. Postwick handles the unsubscribe link, throttling and the per-recipient merge fields.
await postwick.broadcasts.create({
audience_id: 'aud_92ks',
from: 'Lumen <news@mail.lumen.dev>',
subject: 'What shipped in October',
html: '<p>Hi {{{FIRST_NAME|there}}},</p>',
});Merge fields use triple braces so that your own templating engine leaves them alone.
Updated
Was this page helpful?