@tpmjs/tools-resend
Send a single email via the Resend API.
Test @tpmjs/tools-resend (sendEmail) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-resendpnpm add @tpmjs/tools-resendyarn add @tpmjs/tools-resendbun add @tpmjs/tools-resenddeno add npm:@tpmjs/tools-resendimport { sendEmail } from '@tpmjs/tools-resend';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);(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>Available configuration options
fromstringSender email address. Supports "Name <email>" format.
toobjectRecipient email address(es).
subjectstringEmail subject line.
htmlstringHTML body content.
textstringPlain text body content.
ccobjectCC recipient(s).
bccobjectBCC recipient(s).
reply_toobjectReply-to address(es).
headersobjectCustom email headers as key-value pairs.
attachmentsarrayFile attachments (max 40MB total).
tagsarrayTags for categorizing emails.
scheduled_atstringISO 8601 datetime or natural language (e.g. "in 1 min").
topic_idstringTopic ID for subscription management.
Schema extracted: 3/1/2026, 4:28:09 AM
ERROR: No README data found!
Downloads/month
110
GitHub Stars
0
Executions
1
Quality Score