postmark-send-email
БесплатноБез исполняемых скриптовНе проверенUse when sending transactional or broadcast emails through Postmark — single sends, batch (up to 500), bulk, or template-based emails with support for…
от ActiveCampaign★ 47 звёзд на GitHubОб этом скилле
Send Email with Postmark
Overview
Postmark provides multiple endpoints for sending emails:
| Approach | Endpoint | Use Case | Limits |
|---|---|---|---|
| Single | POST /email |
Individual transactional emails | 1 email, 10 MB payload including attachments |
| Batch | POST /email/batch |
Up to 500 emails in one request | 500 emails, 50 MB payload including attachments |
| Template | POST /email/withTemplate |
Dynamic content with server-side templates | 1 email, 10 MB payload including attachments |
| Batch Template | POST /email/batchWithTemplates |
Bulk templated emails | 500 emails, 50 MB payload including attachments |
| Bulk | POST /email/bulk |
Broadcast stream campaigns | No fixed recipient cap, 50 MB payload including attachments |
Choose batch when: sending 2+ distinct emails at once, performance matters, or attachments are needed. Choose single when: sending one email or real-time per-message error handling is needed.
Message Streams (CRITICAL)
Postmark separates emails by intent. Always specify MessageStream:
| Stream | Value | Purpose | SMTP Endpoint |
|---|---|---|---|
| Transactional | outbound |
1:1 triggered emails (default) | smtp.postmarkapp.com |
| Broadcast | broadcast |
Marketing, newsletters | smtp-broadcasts.postmarkapp.com |
Never mix transactional and broadcast in the same stream — it damages deliverability. Servers can have up to 10 message streams.
Quick Start
- Get API Token from your Postmark server settings
- Verify sender domain or email address
- Install SDK — see references/installation.md
- Choose endpoint based on the decision matrix above
Authentication
All API requests require the Server API Token:
X-Postmark-Server-Token: your-server-token-here
Store the token in POSTMARK_SERVER_TOKEN. For testing without sending, use POSTMARK_API_TEST as the token value.
Single Email
Endpoint: POST https://api.postmarkapp.com/email
Required Parameters
| Parameter | Type | Description |
|---|---|---|
From |
string | Sender address (must be a verified domain or sender signature) |
To |
string | Recipients (comma-separated, max 50 total with Cc/Bcc) |
Subject |
string | Email subject line |
TextBody or HtmlBody |
string | Message content (at least one required) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
Cc |
string | CC recipients |
Bcc |
string | BCC recipients |
ReplyTo |
string | Reply-to address |
MessageStream |
string | outbound (default) or broadcast |
Tag |
string | Category for statistics (one per message, max 1000 chars) |
Metadata |
object | Key-value pairs for custom tracking data (returned in webhook payloads) |
TrackOpens |
boolean | Enable open tracking |
TrackLinks |
string | None, HtmlAndText, HtmlOnly, TextOnly |
Headers |
array | Custom email headers [{Name, Value}] |
Attachments |
array | File attachments (max 10 MB total) |
const postmark = require('postmark');
const client = new postmark.ServerClient(process.env.POSTMARK_SERVER_TOKEN);
const result = await client.sendEmail({
From: '[email protected]',
To: '[email protected]',
Subject: 'Your order has shipped',
TextBody: 'Your order #12345 is on its way!',
HtmlBody: '<p>Your order <strong>#12345</strong> is on its way!</p>',
MessageStream: 'outbound',
Tag: 'order-shipped'
});
console.log('MessageID:', result.MessageID);
Response includes MessageID — use it for tracking via webhooks or the Messages API.
See references/single-email-examples.md for Python, Ruby, PHP, .NET, and cURL examples.
Batch Email
Endpoint: POST https://api.postmarkapp.com/email/batch
Send up to 500 emails in a single API call. Each message is independently validated and can have its own attachments, tags, and metadata.
const results = await client.sendEmailBatch([
{
From: '[email protected]',
To: '[email protected]',
Subject: 'Order Shipped',
TextBody: 'Your order has shipped!',
MessageStream: 'outbound'
},
{
From: '[email protected]',
To: '[email protected]',
Subject: 'Order Confirmed',
TextBody: 'Your order is confirmed!',
MessageStream: 'outbound'
}
]);
// Check individual results — always handle partial failures
results.forEach((result, index) => {
if (result.ErrorCode === 0) {
console.log(`Email ${index + 1} sent: ${result.MessageID}`);
} else {
console.error(`Email ${index + 1} failed: ${result.Message}`);
}
});
For more than 500 emails, chunk the array into groups of 500 and send sequentially. See [references/batch-email-examples.md](references/bat
Установить postmark-send-email в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл postmark-send-email?
Use when sending transactional or broadcast emails through Postmark — single sends, batch (up to 500), bulk, or template-based emails with support for attachments, tracking, and message streams.
Как установить скилл postmark-send-email?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл postmark-send-email запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic