C cambric.studio.team
Emails Broadcasts Templates Audience Metrics Domains Logs API Keys Webhooks Settings
C cambric.studio.team

Emails

Sending Receiving
Search…
Last 15 days
To Status Subject
hello@cambric.studio Delivered Welcome aboard
hello@cambric.studio Opened Welcome aboard

Email Sending API

Send an Email

import { Creel } from 'creel';

const creel = new Creel('cr_xxxxxxxxx');

await creel.emails.send({
  from: 'Cambric <onboarding@creel.dev>',
  to: ['delivered@creel.dev'],
  subject: 'hello world',
  html: '<p>it works!</p>',
});

Send Emails in Batch

import { Creel } from 'creel';

const creel = new Creel('cr_xxxxxxxxx');

await creel.batch.send([
  {
    from: 'Cambric <onboarding@creel.dev>',
    to: ['ada@example.com'],
    subject: 'hello world',
    html: '<h1>it works!</h1>',
  },
  {
    from: 'Cambric <onboarding@creel.dev>',
    to: ['lee@example.org'],
    subject: 'world hello',
    html: '<p>it works!</p>',
  },
]);