---
title: "send email batch · RUAL Documentation"
description: "Sends ONE message to up to 1000 recipients, each receiving their own copy. mssgs mail spam-checks the message before releasing it; read the outcome with…"
canonical: https://docs.rual.nl/block-types/mssgs%20mail/mssgsmailconnection_send_email_batch
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Blueprint Language](https://docs.rual.nl/engine)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# send email batch

This block is part of the [`mssgs mail`](https://docs.rual.nl/block-types/mssgs%20mail) group and was last modified in core [`v15.0.1`](https://docs.rual.nl/core-versions/150001).

Sends ONE message to up to 1000 recipients, each receiving their own copy. mssgs mail spam-checks the message before releasing it; read the outcome with `get batch`.

- flow `flow`

- connection required `mssgsmailconnection`

- subject required `value` The subject of the e-mail.

- from `value` The sender, on the API key's own domain : anything else is refused with `INVALID_FROM`. A name can be set with `Name `. Empty uses the service provider's default from address.

- recipients required `array` 1–1000 recipients: addresses, `Name ` strings or `{email, name}` objects.

- html required `value` HTML body.

- text version `value` Plain-text body. Empty strips the HTML version of its tags.

- tag `value` Optional tag for grouping messages in the mssgs mail activity view.

- metadata `object` Optional key/values stored with the message and returned by `get message` and the bounce webhook.

- headers `object` Optional extra mail headers.

- flow `flow`

- connection `mssgsmailconnection`

- success `condition`

- error `value` The refusal as `CODE: message`, e.g. `RECIPIENT_SUPPRESSED`, `DOMAIN_CEILING`, `INVALID_FROM`, `INVALID_API_KEY`. Empty on success.

- response `object` `{batch_guid, status, recipient_count}` on success; the refusal body otherwise.

POST email/batch. This is bulk mail : one subject and body, many recipients : NOT an array of different emails; for per-recipient content loop the send block. success=true means the batch was accepted for checking (response.batch_guid, response.status=checking, response.recipient_count). The platform then spam-checks one representative copy: get_batch later reports status queued (released, one message per recipient), rejected (SPAM_REJECTED with spam_score) or blocked (SPAM_CHECK_UNAVAILABLE : it fails closed). The whole recipient count is charged against the domain's daily ceiling at once (DOMAIN_CEILING), and any previously bounced recipient refuses the batch (RECIPIENT_SUPPRESSED). Suppressed in a simulation.

| `mssgsmail` |
| --- |
| `mssgs mail` |
| `email` |
| `bulk` |
| `newsletter` |

A typical wiring for [send email batch](https://docs.rual.nl/block-types/mssgs%2520mail/mssgsmailconnection_send_email_batch): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [open connection](https://docs.rual.nl/block-types/mssgs%2520mail/mssgsmailconnection_open) feeds the `connection` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `subject` pin; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `recipients` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `html` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%2520ui/state_debug).

[![Studio canvas example for the send email batch block: typical wiring for send email batch.](https://docs.rual.nl/canvas-examples/mssgsmailconnection_send_email_batch.png)](https://docs.rual.nl/canvas-examples/mssgsmailconnection_send_email_batch.png?v=3)

## Version history

Introduced in [`v15.0.1`](https://docs.rual.nl/core-versions/150001).

- [Back to `mssgs mail`](https://docs.rual.nl/block-types/mssgs%20mail): Return to the main group to view all sub-groups

- [Back to `mssgs mail`](https://docs.rual.nl/block-types/mssgs%20mail?group=mssgs%20mail): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
