---
name: inboxit-transactional-email
description: Send a requested transactional email through InboxIt and trace its delivery status. Use for application notifications, receipts and single-message delivery checks.
---

# InboxIt transactional email

Use Node.js 22 or newer and the `inboxit` binary from `@onedigitsa/inboxit`. Run `inboxit help` to check availability. Set `INBOXIT_TOKEN` through the environment using the intended workspace's key. Sending needs `emails:send`; checking an email needs `emails:read`. An authorized interactive user can use `inboxit login` instead. The default origin is production. For a local fixture, pass `--origin` followed by the fixture URL on every command.

## Send one application event

Confirm the intended workspace, verified sender, recipient, and notification from the task. For drafting or troubleshooting an existing send, skip the send command. For an authorized send, write a JSON file with the actual approved values; this example contains placeholders:

```json
{
  "from": "receipts@example.test",
  "to": "customer@example.test",
  "subject": "Your receipt for order 123",
  "text": "We received your payment for order 123."
}
```

Assign one stable idempotency key to this event and recipient. Record it with the exact payload before sending. Replace the uppercase placeholders in the commands below.

```sh
inboxit emails send --workspace WORKSPACE_UUID --data "@email.json" --idempotency-key EVENT_KEY
inboxit emails get --workspace WORKSPACE_UUID --id EMAIL_UUID
```

Use the email ID returned by the send for the lookup. After a timeout or connection loss, reconcile using an existing ID when available. If a retry is appropriate, send the identical payload with the same workspace and key. If the earlier payload or key is unknown, report the uncertainty before attempting another send.

## Verify the outcome

Report the message ID and the status returned by the lookup. A queued or processing response means delivery is pending. A delivered event confirms acceptance by the recipient's mail server. A bounce or suppression calls for inspecting the reported reason before taking further action. If the key can send but cannot read status, report the accepted send and the verification limit. For repeated webhook notifications, correlate the email ID and deduplicate the event ID. Keep message bodies and credentials out of diagnostic output.
