SMTP & API

Transactional email, without the headache

Send confirmations, password resets and notifications from your app. Configure the host once; we handle delivery, retries and bounces.

Get SMTP credentials

Connection settings

API
POST https://api.mailtomany.com/v1/messages
Authentication
Authorization: Bearer mtm_live_…
Sender
any address on your verified domain

The SMTP server is coming soon. Until then you send through the HTTP API, with the same key from your account.

const res = await fetch('https://api.mailtomany.com/v1/messages', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.MTM_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    from: { email: '[email protected]', name: 'Magazinul tău' },
    to: [{ email: client.email }],
    subject: 'Comanda #1042 a fost confirmată',
    html: templateComanda(comanda),
  }),
});
// 202 { id, accepted, suppressed }
How it works

A transactional email, from code to inbox

Order confirmations, password resets, invoices: your app asks, we deliver.

Why mailtomany

Logs for every message

See whether an email was accepted, delivered or bounced, and why.

Separate from marketing

Transactional mail goes out on a different stream from campaigns, so an order confirmation never waits behind a newsletter.

Automatic retries

If the recipient server defers a message, we retry with growing pauses.

Shared suppression

Invalid addresses found over SMTP are blocked in campaigns too, and vice versa.