# MailTs > MailTs (`@mailts/core`) is a TypeScript email SDK for Node.js 22+: native SMTP and IMAP, Google & Microsoft OAuth, Gmail API and Microsoft Graph, a provider-neutral Mailbox API, durable queues and smart inbox content — with zero runtime dependencies and a stable, semver-versioned 1.0 API. Current versions: `@mailts/core` 1.0.0 · `@mailts/cli` 0.2.0 · `@mailts/trap` 1.1.0 · `@mailts/testing` 0.2.0. Install with `npm install @mailts/core`. Key rules for generated code: `send()` returns `{ ok, error }` instead of throwing; `mail.imap` creates a new session on every access, so keep one reference; fetching never marks mail read (`markSeen: true` opts in); `path` attachments need `attachmentPolicy`; XOAUTH2 uses `auth: { type: 'xoauth2', user, getToken }`; DKIM lives under `smtp.dkim`; `await mail.shutdown()` never drops queued mail. For AI coding agents, install the official skill: `npx @mailts/cli skill install` (Claude Code and other Agent Skills readers). ## Docs - [Full reference for LLMs](https://mailts.anishhs.com/llms-full.txt): every API in one plain-text file — core, OAuth, IMAP, queue, transports, CLI, trap, testing, version history - [@mailts/core docs](https://mailts.anishhs.com/#/docs/core): sending, attachments, OAuth, IMAP, connection pool, Mailbox API, queue, security, errors — switchable to any release from 0.1.0 - [API reference](https://mailts.anishhs.com/#/api): signatures, parameters and the version each method was added in - [Examples](https://mailts.anishhs.com/#/examples): copy-paste recipes for every feature - [Changelog](https://mailts.anishhs.com/#/changelog): release notes for all four packages - [Migrating from 0.4 to 1.0](https://github.com/anishhs-gh/mailts/blob/master/MIGRATION.md): breaking changes and how to update ## Packages - [@mailts/cli](https://mailts.anishhs.com/#/docs/cli): `mailts` command — configure, test, send, read, queue control, trap, agent skill - [@mailts/trap](https://mailts.anishhs.com/#/docs/trap): local SMTP trap with web UI and REST API for development - [@mailts/testing](https://mailts.anishhs.com/#/docs/testing): Vitest helper `useTrapServer()` for integration tests against a real trap ## Agent skill - [SKILL.md](https://github.com/anishhs-gh/mailts/blob/master/packages/cli/skill/mailts/SKILL.md): rules and main recipes for AI coding agents - [Skill references](https://github.com/anishhs-gh/mailts/tree/master/packages/cli/skill/mailts/references): sending, reading, OAuth, queues, production ## Source - [GitHub repository](https://github.com/anishhs-gh/mailts): source, README, examples - [Example files](https://github.com/anishhs-gh/mailts/tree/master/examples): runnable TypeScript examples - [npm: @mailts/core](https://www.npmjs.com/package/@mailts/core) ## Optional - [Comparison](https://mailts.anishhs.com/#/comparison): feature comparison with nodemailer and imapflow - [Playground](https://mailts.anishhs.com/#/playground): config builder and SMTP protocol trace