AgenticMailClient (src/client.ts)

gitingest_agenticmail_agenticmail · packages/core/src/client.ts · typescript · MIT
email

Client that connects via SMTP/IMAP or API to send, receive, and manage emails.

// Source: https://github.com/agenticmail/agenticmail | License: MIT | Copyright 2026 Ope Olatunji
// Provided via justclaw.it.com; keep this notice with the code.
import { MailSender, type MailSenderOptions } from './mail/sender.js';
import { MailReceiver, type MailReceiverOptions } from './mail/receiver.js';
import { InboxWatcher, type InboxWatcherOptions } from './inbox/watcher.js';
import { parseEmail } from './mail/parser.js';
import type { SendMailOptions, SendResult, EmailEnvelope, ParsedEmail, SearchCriteria } from './mail/types.js';
import type { WatcherOptions } from './inbox/types.js';

export interface AgenticMailClientOptions {
  agentId: string;
  apiKey: string;
  email?: string;
  password?: string;
  smtp?: { host: string; port: number };
  imap?: { host: string; port: num

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key