.do
Integration

emails

Email sending and management

emails

Email delivery service with template management, transactional emails, bulk sending, and delivery tracking.

Overview

The emails primitive provides reliable email delivery with support for templates, attachments, scheduling, and comprehensive tracking of opens, clicks, and bounces.

Quick Example

import { emails } from 'sdk.do'

// Send simple email
await emails.send({
  to: '[email protected]',
  subject: 'Welcome to Acme',
  text: 'Thanks for signing up!',
  html: '<p>Thanks for signing up!</p>',
})

// Send with template
await emails.send({
  to: '[email protected]',
  template: 'welcome',
  data: { name: 'Alice', verifyUrl: 'https://...' },
})

Core Capabilities

  • Transactional Emails - Order confirmations, password resets, notifications
  • Template Management - Reusable email templates with variables
  • Bulk Sending - Send to multiple recipients efficiently
  • Delivery Tracking - Monitor opens, clicks, bounces, and spam reports
  • Scheduling - Schedule emails for future delivery

Access Methods

SDK

TypeScript/JavaScript library for email operations

await emails.send({ to: '[email protected]', subject: 'Welcome!', text: 'Hello!' })

SDK Documentation

CLI

Command-line tool for email management

do email send [email protected] --subject "Welcome!" --text "Hello!"

CLI Documentation

API

REST/RPC endpoints for email delivery

curl -X POST https://api.do/v1/emails/send -d '{"to":"[email protected]","subject":"Welcome!"}'

API Documentation

MCP

Model Context Protocol for AI-driven email operations

Send an email to [email protected] with subject "Welcome!" and text "Hello!"

MCP Documentation

  • queue - Background email processing
  • events - Email event tracking
  • webhooks - Email delivery webhooks