@tpmjs/tools-postmark
Send a batch of templated emails in a single API call.
Test @tpmjs/tools-postmark (sendBatchWithTemplates) with AI-powered execution
0/2000 characters
Install this tool and use it with the AI SDK
npm install @tpmjs/tools-postmarkpnpm add @tpmjs/tools-postmarkyarn add @tpmjs/tools-postmarkbun add @tpmjs/tools-postmarkdeno add npm:@tpmjs/tools-postmarkimport { sendBatchWithTemplates } from '@tpmjs/tools-postmark';import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { sendBatchWithTemplates } from '@tpmjs/tools-postmark';
const result = await generateText({
model: openai('gpt-4o'),
tools: { sendBatchWithTemplates },
prompt: 'Your prompt here...',
});
console.log(result.text);(Messages: { Cc: string; To: string; Bcc: string; Tag: string; From: string }[]) => Promise<unknown>Available configuration options
MessagesarrayArray of templated email messages.
Schema extracted: 3/1/2026, 4:29:56 AM
ERROR: No README data found!
Downloads/month
178
GitHub Stars
14
Quality Score