Skip to main content

Email Types 📬

Mailofly handles two very different kinds of emails. They might look similar, but they serve totally different purposes. Let’s break it down.

Transactional emails

These are the “something just happened” emails. Your code triggers them when a user does something or when your system needs to notify someone. Examples:
  • 🔐 “Click here to reset your password”
  • 🧾 “Here’s your receipt for order #1234”
  • 🎉 “Welcome! Your account is all set.”
  • 🚨 “Alert: someone logged into your account from a new device”
How to send them: Use the dashboard Compose, or call POST /emails from your code. What you need:
  1. An API key
  2. A recipient email address
  3. Your content (HTML or text)
→ Sending examples · Node.js quickstart

Marketing campaigns

These go out to a whole list of people at once. You pick a segment of your contacts, write your email, and send (or schedule) it. Examples:
  • 📰 Your monthly newsletter
  • 📣 “We just launched a new feature!”
  • 🛍️ A sale or promotion to paying customers
How to send them: Go to Campaigns in the dashboard → pick a segment → compose → send. → Campaigns guide

Side by side