Transactional email is an automated message sent to a single person because of something they did or something that happened on their account. A password reset, a receipt, a login code and a “your order has shipped” note are all transactional. The person expects the message, often needs it right now, and would notice if it never arrived.
How transactional email works
Your application triggers the email from code. A user clicks “Forgot password”, your server creates a reset token, builds the message and hands it to a sending service, usually through an email API or an SMTP relay. The service signs the message with DKIM, delivers it to the recipient’s mail server over SMTP, and reports back what happened: delivered, bounced or marked as spam.
The typical flow:
- An event happens in your app (sign-up, purchase, failed payment).
- Your code calls the sending service with the recipient, subject and body.
- The service returns an id straight away and queues the message.
- Delivery results arrive later as webhooks.
Example: a password reset request
POST /v1/emails
{
"from": "Acme <security@mail.acme.com>",
"to": "sam@example.com",
"subject": "Reset your Acme password",
"text": "Use this link within 30 minutes: https://acme.com/reset?t=...",
"tags": [{ "name": "type", "value": "password_reset" }]
}
One recipient, one event, content that only makes sense for that person. That is the shape of every transactional email.
Common examples
| Type | Trigger |
|---|---|
| Sign-up confirmation | New account created |
| Password reset, magic link | User asks to sign in |
| One-time code (OTP) | Login or sensitive action |
| Receipt, invoice | Payment succeeds |
| Shipping and order updates | Order status changes |
| Security alert | New device, password changed |
| Usage or billing notice | Limit reached, card expiring |
Why it matters for app email
Transactional email is part of your product. If a login code lands in spam, the user cannot sign in, and your support queue fills up. Because these messages are expected and opened, they usually earn a good sender reputation, which is why many teams protect them by sending from a separate subdomain and keeping them apart from newsletters. See transactional vs marketing email for where the line sits.
Speed matters too. A login code that arrives after three minutes is a failed login. Sending services built for app email aim to hand messages to the receiving server within seconds.
Common mistakes
- Sending from a free mailbox or an unverified domain. Without SPF, DKIM and DMARC, receipts land in spam. Follow the SPF, DKIM and DMARC setup guide.
- Mixing in promotions. A receipt with a large sale banner starts to look like marketing to filters and to the law.
- Sending inside the request. Call the API from a background job, or at least do not block the user on delivery.
- Ignoring bounces. Keep sending to dead addresses and your bounce rate climbs.
- No retries or retrying blindly. Retry on timeouts, but use an idempotency key so the user does not get two receipts.
How Mailcandor handles it
Mailcandor is built for transactional email: one POST /v1/emails call per message, an Idempotency-Key header for safe retries, and delivery events by webhook.