Documentation

Everything you need to know about mailtomany

Step-by-step guides for campaigns, automations and forms, plus the reference for SMTP, the API and events.

Getting started

From a new account to your first campaign, in five steps:

  1. Confirm your account email (the link in the welcome email). You can’t send to lists until it’s confirmed.
  2. Add the domain you send from (e.g. company.com) under Domains and publish the DNS records shown. See Sending domain.
  3. Import your contacts into a list (CSV or copy-paste) or add a signup form to your site.
  4. Create a campaign: details, recipients (lists, tags or a segment), content from the visual editor, review.
  5. Send a test email, then send the campaign now or schedule it.

Each email sent uses one credit. The free plan includes monthly credits; you can buy extra packs any time under Plan & credits. Credits for messages that don’t go out (invalid addresses, contacts who unsubscribed meanwhile) are refunded automatically.

Sending domain

You can only send from verified domains, so your emails get past Gmail, Yahoo and Outlook filters. Under Domains you get the records to add at your DNS provider (e.g. Cloudflare, GoDaddy, cPanel):

  • 3 CNAME records for DKIM (…._domainkey.company.com): they sign your emails as yours.
  • An ownership TXT record (_mailtomany.company.com): proves the domain is yours.
  • A DMARC TXT record (_dmarc.company.com) if you don’t have one. We recommend starting with p=none.

Verification runs automatically every few minutes; you can also press “Check now”. DNS usually propagates in under an hour, rarely up to 48 hours. A domain can be verified by one account only.

You don’t need to change SPF: the envelope uses our sending domain and DMARC alignment comes from DKIM.

Contacts, lists and import

Contacts are organized into lists (e.g. “Newsletter”, “Customers”) and can have tags and custom fields (e.g. city, birthday).

Import: upload a CSV or paste data copied from Excel. The first row is the header; common columns are matched automatically (email, first_name, last_name, tags) and you can map the rest to custom fields. Example:

email,first_name,last_name,city
[email protected],Ana,Pop,Iasi

When importing you confirm you have the contacts’ consent (GDPR). Previously unsubscribed or blocked addresses are not resubscribed.

Segments: saved filters on fields, tags, lists, signup date or activity (opened / clicked in the last N days, opened a given campaign). Use them as campaign recipients; they’re re-evaluated on every send.

Personalization (merge tags)

You can use merge tags in the subject and content; they’re replaced for each contact:

TagValue
{{first_name}}First name
{{last_name}}, {{full_name}}Last name, full name
{{email}}Email address
{{fields.city}}A custom field
{{event.cart.total}}Data from the event that started the automation (see Events)
{{unsubscribe_url}}The unsubscribe link (added to the footer automatically anyway)

Fallback when the field is empty: {{first_name|"friend"}} → “Hi, friend!”.

Signup forms

Under Forms you create a form (fields, texts, colors, the list subscribers join) and put it on your site in three ways:

  • Script (recommended): paste the code where the form should appear (WordPress: “Custom HTML” block). Your site’s styles won’t affect it.
  • Iframe: for platforms that don’t allow scripts.
  • Link: a ready-made page for your bio, social media or email signature.

By default signups use double opt-in: the contact gets an email and joins the list only after clicking the link. Forms are protected against bots (an invisible honeypot field and a per-IP signup limit).

Campaigns and A/B tests

A campaign has four steps: details (name, subject, sender), recipients, content and review. The review shows anything missing (unverified domain, credits, content) and lets you send a test. Send now or schedule; a running campaign can be paused or stopped.

A/B tests

Tick “Test variants” in the details and add variant B (and, optionally, C). A variant can change the subject, preview text, sender name and/or content; empty fields reuse variant A’s.

  • A test group (10–50% of the audience, picked at random) gets the variants equally.
  • After the time you choose (1–72 hours), the variant with the most opens or clicks wins and the rest of the audience gets it automatically.
  • You can pick the winner earlier from the report. With very small audiences, everyone is in the test.

The campaign report shows sends, opens, clicks (per link too), bounces, unsubscribes and complaints, plus each variant’s results.

Automations

Automations (Pro and Business plans) send emails on their own, from a trigger:

  • Joining a list: welcome series, onboarding.
  • Getting a tag: e.g. the contact gets the customer tag.
  • A date in the contact’s record, yearly: birthday (field birthday), signup anniversary; N days before/after, at the hour you choose.
  • An event sent via the API: e.g. cart_abandoned, with an exit event (e.g. order_placed) that stops the series. See Events.

You build the flow visually: emails with a wait before them (minutes, hours, days) and conditions (“if they opened / clicked email X”) with Yes and No branches that merge after the condition. Put a 1–2 day wait before a condition so subscribers have time to open the email.

Pause the automation to change the flow; email content can be edited any time. Contacts who unsubscribe or leave the list also leave the flow.

HTTP API

Base URL: https://api.mailtomany.com. Authenticate with your API key in the header: Authorization: Bearer mtm_live_…. The full OpenAPI 3.1 spec: https://api.mailtomany.com/v1/openapi.json (import it into Postman or a client generator).

Send an email

POST /v1/messages
{
  "from": { "email": "[email protected]", "name": "The Shop" },
  "to": [{ "email": "[email protected]", "name": "Ana Pop" }],
  "subject": "Order #1042 confirmed",
  "html": "<p>Thank you for your order!</p>"
}

→ 202 { "id": "…", "accepted": 1, "suppressed": 0 }

Optional fields: cc, bcc, replyTo, text (generated from HTML when missing), headers (only X-… headers).

Message status

GET /v1/messages/{id}
→ 200 { "id": "…", "status": "sent", "deliveredAt": "…", "bouncedAt": null, … }

Errors

All errors look like { "error": "code", "message": "…" }: 401 unauthorized, 402 insufficient_credits, 403 sender_not_verified, 413 too_large, 422 invalid_to (and the other validations), 429 rate_limited. Limits: 1,200 requests per minute per key.

Events (API-triggered automations)

Send events from your shop or app to start or stop automations for a contact:

POST /v1/events
{
  "email": "[email protected]",
  "event": "cart_abandoned",
  "data": { "cart": { "total": 149.90, "url": "https://shop.com/cart" } }
}

→ 202 { "accepted": true, "contactFound": true, "enrolled": 1, "exited": 0 }
  • Event name: lowercase letters, digits, _, ., - (max 60), e.g. cart_abandoned, order_placed, trial_started.
  • Active automations with this trigger start. The contact must exist and be subscribed (and be in the automation’s list, if it has one); otherwise contactFound or enrolled tells you why it didn’t enter.
  • The event stops flows that use it as their exit event (e.g. order_placed stops the abandoned-cart series).
  • If the flow is already running it doesn’t restart; it only gets the new data. Once finished, a new event starts it again.
  • data (max 16 KB) is available in emails as {{event.cart.total}}; values are HTML-escaped.

Deliverability and reputation

  • Hard bounce (address doesn’t exist): the address is blocked automatically, for all accounts.
  • Complaint (the recipient clicked “Spam”): the contact is unsubscribed and blocked in your account.
  • Unsubscribe: every email has an unsubscribe link and List-Unsubscribe headers (one-click unsubscribe in Gmail and Yahoo).

Tips: only email people who signed up, regularly clean inactive contacts (segment “didn’t open in the last 180 days”), keep DMARC on and avoid misleading subjects. A campaign with too many hard bounces (over 8%) or complaints (over 0.5%) is paused automatically to protect delivery for all customers; our team reviews it with you.

Can’t find an answer? Write to us and we’ll help.

ContactGet SMTP credentials