Home/Tools/@tpmjs/tools-resend

sendEmail

@tpmjs/tools-resend

Send a single email via the Resend API.

Official
ops
v0.1.0
MIT

Interactive Playground

Test @tpmjs/tools-resend (sendEmail) with AI-powered execution

0/2000 characters

Installation & Usage

Install this tool and use it with the AI SDK

1. Install the package

npm install @tpmjs/tools-resend
pnpm add @tpmjs/tools-resend
yarn add @tpmjs/tools-resend
bun add @tpmjs/tools-resend
deno add npm:@tpmjs/tools-resend

2. Import the tool

import { sendEmail } from '@tpmjs/tools-resend';

3. Use with AI SDK

import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { sendEmail } from '@tpmjs/tools-resend';

const result = await generateText({
  model: openai('gpt-4o'),
  tools: { sendEmail },
  prompt: 'Your prompt here...',
});

console.log(result.text);

Signature

(to: {  }, from: string, subject: string, cc?: {  }, bcc?: {  }, html?: string, tags?: { name: string; value: string }[], text?: string, headers?: Record<string, unknown>, reply_to?: {  }, topic_id?: string, attachments?: { path: string; content: string; filename: string; content_type: string }[], scheduled_at?: string) => Promise<unknown>

Tags

agent
api
email
ops
resend
send
single
tpmjs
transactional
via

Parameters

Available configuration options

Auto-extracted
from
Required
Type: string

Sender email address. Supports "Name <email>" format.

to
Required
Type: object

Recipient email address(es).

subject
Required
Type: string

Email subject line.

html
Optional
Type: string

HTML body content.

text
Optional
Type: string

Plain text body content.

cc
Optional
Type: object

CC recipient(s).

bcc
Optional
Type: object

BCC recipient(s).

reply_to
Optional
Type: object

Reply-to address(es).

headers
Optional
Type: object

Custom email headers as key-value pairs.

attachments
Optional
Type: array

File attachments (max 40MB total).

tags
Optional
Type: array

Tags for categorizing emails.

scheduled_at
Optional
Type: string

ISO 8601 datetime or natural language (e.g. "in 1 min").

topic_id
Optional
Type: string

Topic ID for subscription management.

Schema extracted: 3/1/2026, 4:28:09 AM

README

ERROR: No README data found!

Statistics

Downloads/month

110

GitHub Stars

0

Executions

1

Quality Score

78%

Bundle Size

NPM Keywords

tpmjs
resend
email
transactional
agent

Maintainers

thomasdavis(thomasalwyndavis@gmail.com)

Frameworks

vercel-ai
sendEmail | TPMJS | TPMJS