Skip to main content
ScrubiMail

Email sending

Send from your own domain, with deliverability built in

Transactional and campaign email through a REST API or an SMTP relay, on ScrubiMail's own sending infrastructure. Verify your domain, send, and follow delivery, bounces and reputation in one place.

The Free plan includes 200 sending credits a month. Signing up does not ask for a card.

POST /send/ 202 Accepted
from
Your Company <[email protected]>
to
[email protected]
subject
Welcome, {{first_name|there}}
Example delivery timeline
  1. queued

    Created, waiting to be sent

  2. sending

    Handed to the sending service

  3. delivered

    The recipient's server accepted the message

Message headersspf=passdkim=passdmarc=pass

What you get

Everything between your app and the inbox

One API for the message, and the tools around it that keep your reputation healthy.

  • Transactional API

    Send a single message with HTML and text bodies, reply-to, tags and attachments. The response gives you a message_id to track.

    POST /send/

  • Bulk sends and campaigns

    Send to many recipients in one request, or build a campaign and start or pause it. Suppressed addresses are skipped automatically.

    POST /send/bulk/, /send/campaigns/

  • Templates and personalisation

    Save reusable templates, start from one of 11 starters, and personalise subjects and bodies per recipient with tags and fallbacks.

    {{first_name|there}}

  • Attachments and inline images

    Attach up to 10 files totalling 10 MB, or embed an image with a content ID. Executable file types are refused.

    attachments, content_id

  • Domain authentication

    Add a domain and get the exact SPF, DKIM and DMARC records to publish. Mail is only sent from domains you have verified.

    POST /send/domains/

  • Suppression lists

    Hard bounces, unsubscribes and complaints land on your list, and suppressed addresses are never emailed. Manage entries yourself too.

    GET /send/suppressions/

  • One-click unsubscribe

    List-Unsubscribe and List-Unsubscribe-Post headers on marketing mail, added automatically to bulk sends and campaigns.

    List-Unsubscribe-Post

  • Dedicated IPs and warm-up

    Have an IP assigned to your account and follow its warm-up schedule, with its status and daily limit visible in the API.

    GET /send/ips/

  • Reputation monitoring

    A 30-day view of delivery, bounce and complaint rates, with a reputation score from 0 to 100.

    GET /send/reputation/summary/

How it works

From a new domain to delivered mail

  1. 01

    Add your domain

    Add the domain you send from, or a subdomain, in the dashboard or with the API.

  2. 02

    Publish DNS records

    Copy the SPF, DKIM and DMARC records shown for your domain into your DNS provider.

  3. 03

    Verify

    Run the verification. A domain counts as verified when SPF and DKIM pass.

  4. 04

    Send

    Call the API with an API key, or point an app at the SMTP relay. Each message costs one credit.

  5. 05

    Track

    Follow each message from queued to delivered or bounced, and watch your reputation score.

Domain authentication

Three DNS records, shown exactly as you publish them

The dashboard fills in your own DKIM key. The SPF include and the DKIM selector are the same for every account.

DNS records for a sending domain
SPF
TXT
@
v=spf1 include:_spf.scrubimail.com ~all
Required
DKIM
TXT
scrubimail._domainkey
v=DKIM1; k=rsa; p=<public key shown for your domain>
Required
DMARC
TXT
_dmarc
v=DMARC1; p=none; rua=mailto:[email protected]
Recommended
  • A domain can have only one SPF record. If you already have one, add the include to it.
  • Copy the DKIM value exactly. It is unique to your domain.
  • DNS changes take minutes, sometimes up to 48 hours. Verify again after they spread.
  • With the API: POST /send/domains/, then POST /send/domains/{id}/verify/.

In code

Send with one request

Authenticate with the X-API-Key header. Use a key with the send scope for single sends and send:bulk for bulk sends.

  • sending_domain_id is the id of a verified domain. Find it in the dashboard or in GET /send/domains/.
  • from_email must be an address on that domain.
  • The response is 202 Accepted with a message_id. Check progress with GET /send/status/{message_id}/.
  • Statuses: queued, sending, delivered, bounced and failed.
curl -X POST "https://api.scrubimail.com/scrubimail/api/v1/send/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sending_domain_id": "YOUR_DOMAIN_ID",
    "from_email": "[email protected]",
    "from_name": "Your Company",
    "to_email": "[email protected]",
    "to_name": "Ada Lovelace",
    "subject": "Welcome, {{first_name|there}}",
    "html_content": "<p>Hi {{first_name|there}}, thanks for joining.</p>",
    "text_content": "Hi {{first_name|there}}, thanks for joining.",
    "tags": ["welcome"]
  }'
202 Accepted, abridged
{
  "id": "e5f6a7b8-...",
  "to_email": "[email protected]",
  "status": "sending",
  "message_id": "d4e5f6a7-...",
  "credits_consumed": 1
}
Bulk: POST /send/bulk/
# Bulk send: 1 credit per recipient, suppressed addresses are skipped
curl -X POST "https://api.scrubimail.com/scrubimail/api/v1/send/bulk/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sending_domain_id": "YOUR_DOMAIN_ID",
    "campaign_name": "November newsletter",
    "from_email": "[email protected]",
    "from_name": "Your Company",
    "subject": "What is new, {{first_name|friend}}",
    "html_content": "<p>Hi {{first_name|friend}}, here is the latest.</p>",
    "recipients": [
      {"email": "[email protected]", "name": "Alice Doe"},
      {"email": "[email protected]", "name": "Bob Roe", "variables": {"company": "Roe Ltd"}}
    ]
  }'

# Check one message
curl "https://api.scrubimail.com/scrubimail/api/v1/send/status/MESSAGE_ID/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Templates

Personalise every message

Subjects and bodies of every send, bulk send, campaign and template are rendered per recipient. Values are HTML-escaped in the HTML body.

Starter templates

  • Welcome
  • Email confirmation
  • Password reset
  • Sign-in alert
  • Order confirmation
  • Shipping update
  • Invoice reminder
  • Newsletter
  • Event invitation
  • Feedback request
  • Win-back

Copy a starter into your account with POST /send/templates/from-starter/, then edit it.

Personalisation tags
{{first_name}}
The recipient's first name, or empty if there is none
{{first_name|there}}
The value, or the fallback after the pipe when there is none
email, name, first_name, last_name
Always available, taken from the recipient
{{company}}
Any custom tag (letters, digits, underscores). Values come from variables on the request or on each recipient

Messages sent over SMTP are delivered as written, so fill in values before sending them that way.

Deliverability

Protect your reputation automatically

Bounces and complaints are handled for you, and the numbers that matter are one request away.

What puts an address on your suppression list

Suppression rules
Hard bounce: the receiving server permanently rejects the message
Yes, automatically
bounce
The recipient unsubscribes with the link or one-click unsubscribe
Yes, automatically
unsubscribe
The recipient marks the message as spam in Outlook, Hotmail or Yahoo/AOL
Yes, automatically
complaint
The recipient marks the message as spam in Gmail
No. Gmail does not report individual complaints, so add the address yourself if you learn of one
complaint
You add the address on the Suppressions tab or through the API
Yes
manual
Soft bounce: a temporary failure, a full mailbox, a policy block, or delivery given up after retries
No
-

The list belongs to your account only. To email an address again, remove it from the list.

Dedicated IPs and warm-up

A new IP starts with a small daily limit that rises on a warm-up schedule, then the limit is lifted and the IP is marked active. Its status and today's usage are visible in the API.

During warm-up, sends past the day's limit are rejected until the limit resets.

Reputation score

A 0 to 100 score based on your recent sending, driven mainly by bounce and complaint rates. Higher is better.

The summary also reports delivery rate, bounce rate and complaint rate. Validating a list before you send is the best way to keep bounces down.

Use cases

What teams send

  • Transactional mail

    Sign-in codes, receipts, password resets and order updates, sent from your own domain with delivery status for every message.

  • Campaigns

    Create a campaign from a template and a recipient list, start it when you are ready, and pause it if something is wrong.

  • Newsletters

    Personalised bulk sends with one-click unsubscribe added for you and suppressions respected.

  • Clean lists, fewer bounces

    Validate addresses first so hard bounces do not drag your reputation down.

    See email validation
  • Apps that only speak SMTP

    WordPress, CRMs and frameworks can use the same account and credits through the SMTP relay.

    See the SMTP relay

Pricing

Pay for the email you send

One credit sends one email, and each recipient of a bulk send counts as one.

See plans and the calculator
Free plan
200 emails
included every month. Signing up does not ask for a card.
Monthly plans from
$9 a month
Starter includes 20,000 sending credits a month.
Pay as you go
from $0.0006 per email
$1.50 buys the first 1,000 credits; the rate drops as you buy more.

FAQ

Frequently asked questions

Domains, deliverability and limits.

Do I have to verify a domain before I can send?

Yes. You can only send from a domain you have verified, which keeps other people from sending as you. Add the domain in the dashboard or with POST /send/domains/, publish the DNS records it shows, then verify. A domain is verified when SPF and DKIM pass. DNS changes usually take minutes and can take up to 48 hours.

Can I send from a subdomain?

Yes. Use the domain itself, such as yourcompany.com, or a subdomain such as mail.yourcompany.com. Each one is verified on its own.

I already have an SPF record. What do I do?

A domain may have only one SPF record. Add include:_spf.scrubimail.com to your existing record instead of creating a second one, because receivers reject domains that publish several.

What happens to bounces and complaints?

Hard bounces are added to your suppression list automatically, and so are unsubscribes and complaints reported by Outlook, Hotmail and Yahoo. Suppressed addresses are rejected on single sends and skipped on bulk sends and campaigns. Gmail does not report individual complaints, so those you add yourself. The table above lists every case.

How does unsubscribe work?

Bulk sends and campaigns add a one-click unsubscribe automatically: the List-Unsubscribe and List-Unsubscribe-Post headers, plus a link. For a single send, set list_unsubscribe to true or put {{unsubscribe_url}} in your content. Unsubscribes land on your suppression list.

Can I get dedicated IP addresses?

Yes. A dedicated IP is assigned to your account by ScrubiMail, so ask us at [email protected]. A new IP follows a warm-up schedule that raises the daily limit gradually, and you can see its status and today's usage with GET /send/ips/.

Can I send attachments?

Yes. Through the API you can attach up to 10 files totalling 10 MB, and executable types such as .exe and .js are refused. Give a file a content_id to use it as an inline image. Over SMTP, attach files in your mail library as usual, up to 20 MB per message.

What happens when I run out of credits?

Sending needs one credit per email. When your balance is empty the API answers 402 with an insufficient credits error, and over SMTP the message is rejected with 550 5.7.1. Nothing is sent. Add credits in the app and retry.

Send your first email from your own domain

Create an account, verify a domain and make your first request.