# mailtomany — documentation > mailtomany is an email marketing and transactional email platform for businesses, run from Romania, with data stored in the EU. Customers build campaigns, newsletters and automations, manage contacts, lists, segments and signup forms, and send transactional email through an HTTP API (and SMTP when enabled). Sending is paid in credits: one credit per email; credits for messages that are not sent come back. Source: https://mailtomany.com/en/docs ## Frequently asked questions ### What is mailtomany? An online email marketing platform: keep your contacts in one place, create newsletters and campaigns in a visual editor, send them now or on a schedule, run automations (such as a welcome series) and see who opened and what they clicked. Your apps can also send transactional emails (order confirmations, password resets) through the API. ### Who is it for? For online shops, service businesses, non-profits, creators and product teams who want to write to customers who asked for it, from a few hundred to hundreds of thousands of contacts. The interface and support are in Romanian and English. ### How much does it cost? You can start for free: the free plan includes emails every month. Then choose a monthly or yearly plan, or buy credit packs with no subscription. One credit is one email sent to one recipient, and credits for emails that are not sent come back. Current prices are on the Pricing page. ### Do I need technical skills? No. Emails are built from blocks, without code. The only technical step is verifying the domain you send from: we show you exactly which DNS records to add, and verification is automatic. ### How do I bring my contacts? Import a CSV or Excel file, add a signup form to your site (script, iframe or link), or add contacts by hand. Unsubscribed or invalid addresses are skipped automatically when sending. ### Is it GDPR compliant? Yes. Data is stored on servers in the European Union, forms use double opt-in, every email has one-click unsubscribe, and the data processing agreement (GDPR Art. 28) is part of the terms. You can save the source and date of consent for each contact. ### How do emails reach the inbox, not spam? Every email leaves DKIM-signed with your domain and follows the Gmail, Yahoo and Outlook sender rules. Bounces, complaints and unsubscribes are handled automatically, and problem campaigns are stopped before they hurt your reputation. Bought lists cannot be used. ### Can I send email from my app or shop? Yes, through the HTTP API: a single POST sends the email, and you can see its status through the API or in the app. The API comes with the Pro and Business plans and with any valid credit pack. Details on the Developers & AI page. ### Can I cancel any time? Yes. Turn off renewal in the app and your plan stays active until the end of the paid period. You can export your contacts at any time and ask for your account to be closed. ### What is a credit? One credit is one email sent to one recipient. A campaign to 5,000 contacts uses 5,000 credits. ### What happens to unused credits? Monthly subscription credits expire at the end of the month. Pack credits stay valid for the period shown on the card. We always use the credits that expire soonest first. ### Can I combine a plan with packs? Yes. If you run out of monthly credits, buy a pack and keep sending without changing your plan. ### Do I get an invoice? Yes, an invoice is issued automatically for every payment and is available in your account. ## 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](https://mailtomany.com/en/docs#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 ana@example.com,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: | Tag | Value | | --- | --- | | `{{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](https://mailtomany.com/en/docs#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](https://mailtomany.com/en/docs#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": "orders@shop.com", "name": "The Shop" }, "to": [{ "email": "customer@example.com", "name": "Ana Pop" }], "subject": "Order #1042 confirmed", "html": "
Thank you for your order!
" } → 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": "customer@example.com", "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.