Transactional Email API
Trigger reliable, high-speed emails from any API call. Password resets, receipts, alerts — delivered to the inbox in milliseconds with 99.97% delivery rate.
import { Mailsflux } from 'mailsflux-sdk';
const mf = new Mailsflux('mf_live_sk_•••••••');
await mf.emails.send({
from: '[email protected]',
to: '[email protected]',
subject: 'Your order has shipped 🎉',
template: 'order-shipped',
vars: {
name: 'John',
orderId: '#88832',
trackingUrl: 'https://track.example.com/...',
},
});
// Response
// { id: 'msg_01JNPX...', status: 'queued', queued_at: '...' }Everything you need
Emails are queued and dispatched within milliseconds of your API call. Average end-to-end delivery to major ISPs under 280ms.
Inject dynamic content into templates with simple {{variable}} syntax. Supports conditional blocks, loops, and multi-language variants.
Attach files up to 25MB per message. Inline images via Content-ID for pixel-perfect HTML emails without blocked images.
Receive delivery, open, click, bounce, and complaint events as they happen. Retry logic built in — no missed events.
Query delivery status, open timestamps, and click data by message ID via API. Surface it directly in your support tooling.
Soft bounces and ISP throttling are handled transparently. We retry with exponential backoff — your API call always returns success.
Common use cases
Send your first email in 5 minutes
Free plan includes 5,000 emails/month. No credit card required.