- Home
- Skills
- APIs & Backend
- SendPulse Transactional Email (SMTP)
Works with the AI Agents you already use
SendPulse Transactional Email (SMTP)
Send transactional email via SendPulse SMTP API or relay: setup, SPF/DKIM, bounces and deliverability fixes.
Free
SendPulse Transactional Email (SMTP)
Example session with this skill installed
Send an order confirmation email via SendPulse from my Node.js app when an order is paid.
- Read your context and instructions
- Compiled the sendpulse transactional email
Order confirmation via SendPulse SMTP API
Summary: before sending, confirm 4 things in SendPulse, then drop in this function.
Checklist
| # | Check | Where |
|---|---|---|
| 1 | SMTP account activated (profile filled, moderation passed, up to 24h) | SMTP → Settings |
| 2 | Sender verified, on your own domain (not gmail.com) | SMTP → Settings |
| 3 | SPF and DKIM added to your domain DNS | SMTP → Settings |
| 4 | API key created, stored in SENDPULSE_API_KEY | Settings → API |
Code (Node.js 18+)
export async function sendOrderConfirmation(order) {
const html = `<h1>Thanks, ${order.name}!</h1><p>Order #${order.id} is confirmed.</p>`;
const res = await fetch('https://api.sendpulse.com/smtp/emails', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.SENDPULSE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: {
subject: `Your order #${order.id} is confirmed`,
from: { name: 'My Shop', email: 'noreply@myshop.com' },
to: [{ name: order.name, email: order.email }],
html: Buffer.from(html).toString('base64'),
text: `Thanks, ${order.name}! Order #${order.id} is confirmed.`,
},
}),
});
const data = await res.json();
if (!data.result) throw new Error(`SendPulse error: ${JSON.stringify(data)}`);
return data.id; // store it to check delivery status later
}
Why it's written this way
htmlis Base64-encoded, raw HTML fails.- A plain-text version is included for better deliverability.
tois an array even for one recipient.- The returned
idlets you check status viaGET /smtp/emails/{id}.
Next steps
- Process bounces daily:
GET /smtp/bounces/day. - Check the unsubscribe list before sending:
GET /smtp/unsubscribe/search?email=.... - Need a nicer email design? Use
sendpulse-template-skill.
Connects securely to your tools. The creator never sees your data.
About this skill
Teaches your AI agent to send transactional email through SendPulse: order confirmations, password resets, notifications, invoices. One email per app event, triggered by your code.
What it does
- Picks the right transport: REST API (POST /smtp/emails, recommended) or SMTP relay (smtp-pulse.com:465) for PHPMailer, nodemailer, WordPress and other SMTP-only apps
- Walks you through the 4 prerequisites before any code: activated SMTP account, verified sender on a corporate domain, SPF and DKIM, API credentials
- Writes working send code with the rules that break most integrations: Base64 html, plain-text version,
toas an array, storing the message id - Builds good-sender habits in: unsubscribe checks, daily bounce processing, domain warm-up, 429 backoff
- Diagnoses "email not sending / in spam" with a step-by-step checklist
Why this beats prompting it yourself
Generic models send raw HTML instead of Base64, forget that free mailbox domains (gmail.com etc.) are rejected as senders, and skip the SMTP account moderation step. This skill checks all of that first.
Works with
- SendPulse REST API: cURL, PHP, Python, Node.js examples
- SendPulse MCP server for account checks from chat (senders, stats, unsubscribes)
Install via CLI
npx skills add sendpulse/sendpulse-skills --skill sendpulse-smtp-skill
Official skill by SendPulse. Source: https://github.com/sendpulse/sendpulse-skills
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.
These are SendPulse rules the skill handles for you: the SMTP account must pass moderation (usually up to 24h) before it sends; the sender must be verified and on a corporate domain (gmail.com and other free domains are rejected); SPF and DKIM are needed to avoid spam. Not for newsletters to a list (use sendpulse-email-skill) or HTML email design (use sendpulse-template-skill).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 27 days ago
- Free with an Agensi account
- Accounts
Smtp Pulse
SendPulse account
SendPulse API key
orSMTP login- Software
Git
Activate the SMTP service in your SendPulse account. The SMTP login is for relay.
Permissions
Allowed Hosts
Network access is used only to call the SendPulse API (api.sendpulse.com) or SMTP relay (smtp-pulse.com). Credentials are read from environment variables and never hardcoded.