Skip to content

Quickstart: Sypnia Cloud

Verify your domain, create a template and send your first e-mail.

Applies to Cloud
View as Markdown
On this page
  1. Add your domain
  2. Create a template
  3. Create a key and send
  4. See what happened

You need a domain of your own: Mail sends only from domains you verified, the free e-mails included. Every organization can send 10 e-mails a month free; beyond that, e-mails are paid from credits. A new domain starts with a low daily quota that grows with good activity (Reputation and warm-up).

  1. Add your domain

    Terminal
    npx @sypnia/mail login
    npx @sypnia/mail domains add laespiga.co

    If the domain is in Sypnia Domains, the records are added for you. Otherwise the command prints them (three DKIM CNAMEs, the return-path MX and TXT, and a DMARC TXT) and waits for them.

    You should see
    laespiga.co verified: DKIM ✓ SPF ✓ DMARC ✓.
  2. Create a template

    Terminal
    npx @sypnia/mail templates create order-ready --subject "Tu pedido {{order}} está listo" --html ./order-ready.html
  3. Create a key and send

    Terminal
    npx @sypnia/mail keys create server --scope send
    TypeScript
    import { createMail } from '@sypnia/mail/server';
    const mail = createMail({ apiKey: process.env.SYPNIA_MAIL_KEY! });
    const { id } = await mail.send({ from: 'La Espiga <pedidos@laespiga.co>', to: 'ana@example.com', template: 'order-ready', data: { name: 'Ana', order: '#1042' } });
  4. See what happened

    Terminal
    npx @sypnia/mail events --email <id>
    You should see
    queued → sent → delivered.
  1. Add your domain
  2. Create a template
  3. Create a key and send
  4. See what happened

    Search pages, sections and terms