Sending Emails π¨
Think of Mailofly as your super-reliable postman, except instead of putting envelopes in mailboxes, it shoots emails across the internet at lightning speed. You tell Mailofly: βhey, send this to that personβ β and it takes care of everything else. Signing, routing, rate limiting, delivery tracking β all handled.Ways to send
Youβve got four options, pick whatever fits your vibe:- REST API β make a simple
POSTrequest from literally any language or tool. - Official SDKs β ready-made libraries for TypeScript, Python, PHP, Go, and Dart. They do all the boring HTTP stuff for you.
- SMTP Gateway β already using Nodemailer, Laravel, PHPMailer, or Supabase? Just point them at
smtp.mailofly.comand youβre done. - AI / MCP Server β let AI tools and code assistants trigger sends for you. Futuristic stuff.
What every email needs
When you send an email, you need at least these things:fromβ who itβs coming from. Must be a domain youβve verified (e.g.Hi Team <hello@yourcompany.com>).toβ whoβs getting it. You can send to multiple people at once.subjectβ the subject line. Make it interesting!htmlortextβ the actual content. HTML for pretty, text for plain.
- π
attachmentsβ PDFs, images, files, etc. - π
scheduled_atβ send it at a specific time in the future. - π·οΈ
tagsβ label your emails for analytics filtering. - π¬
headersβ custom email headers if you need them.
Where to go next
- Send Your First Email β full code examples for every language
- Batch Sending β send to lots of people at once efficiently
- Attachments β add files to your emails
- Schedule Emails β queue up emails for later
- Bounces & Suppressions β deal with failed deliveries
