· 1 min read
How to send email with attachments using an API (with code)
Send PDFs, images and CSVs as email attachments from Node.js, Python, PHP and cURL, plus the size limits and deliverability rules to know.
Blog
Featured · · 2 min read
Transactional emails are the messages your product sends because a user did something: password resets, receipts, login codes. Here's what counts, how they differ from marketing email, and how to make sure they arrive.
Read article
· 1 min read
Send PDFs, images and CSVs as email attachments from Node.js, Python, PHP and cURL, plus the size limits and deliverability rules to know.
· 2 min read
What each DMARC policy does, which one you need for Gmail and Yahoo, and a safe step-by-step path from p=none to p=reject.
· 2 min read
Which SMTP port should you use? A clear guide to ports 25, 465, 587 and 2525, what STARTTLS and implicit TLS mean, and how to fix blocked ports.
· 2 min read
The free SMTP options that actually work for apps, websites and devices, their limits, and when a free mailbox isn't enough.
· 3 min read
An honest comparison of the main transactional email APIs: what each is good at, what their free tiers include, and how to choose.
· 1 min read
Connect Claude, Cursor or any MCP client to Stack Emails so agents can send email, check delivery and read inbound mail.
· 1 min read
Hard bounces, soft bounces and suppression lists explained — plus seven practical ways to keep your bounce rate low.
· 1 min read
How email webhooks work, which events to handle, and how to verify signatures so nobody can forge them.
· 1 min read
Send transactional email from a Next.js Server Action or Route Handler with the Stack Emails SDK — with React Email templates and safe retries.
· 1 min read
Receipts and newsletters follow different laws, have different expectations, and should never share a sender reputation.
· 2 min read
Authentication, one-click unsubscribe and a spam-rate ceiling are now mandatory for bulk senders. Here is exactly what is required.
· 2 min read
What each email authentication record does, how they work together, and a step-by-step setup for any DNS provider.
· 3 min read
Why perfectly valid emails still land in spam, and the eight things that actually move inbox placement — from authentication to list hygiene.