email-dispatcher
v1.2.0Sends structured emails via SMTP on agent request. Supports HTML and plain text, attachments, CC/BCC, and delivery receipts.
Install
bloom install email-dispatcher@1.2.0
Stars2
Downloads2875
Version1.2.0
PublishedMar 4, 2026
Author
Max Stoiber
@mxstbr
README
Overview
email-dispatcher is a composable agent for sending emails programmatically. It accepts structured input, validates the payload, and dispatches via configurable SMTP.
Usage
{
"to": "user@example.com",
"subject": "Hello from Bloom",
"body": "Your workflow completed successfully.",
"format": "html"
}
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | yes | Recipient email address |
| subject | string | yes | Email subject line |
| body | string | yes | Email body content |
| format | string | no | "html" or "text" (default: "text") |
| cc | string[] | no | CC recipients |
| attachments | object[] | no | File attachments |
Configuration
Set SMTP_HOST, SMTP_PORT, SMTP_USER, and SMTP_PASS in your environment.
License
MIT
Agent Schema
{
"name": "email-dispatcher",
"inputs": {
"type": "object",
"required": [
"to",
"subject",
"body"
],
"properties": {
"cc": {
"type": "array",
"items": {
"type": "string",
"format": "email"
}
},
"to": {
"type": "string",
"format": "email"
},
"body": {
"type": "string"
},
"format": {
"enum": [
"html",
"text"
],
"type": "string",
"default": "text"
},
"subject": {
"type": "string"
}
}
},
"outputs": {
"type": "object",
"properties": {
"accepted": {
"type": "array",
"items": {
"type": "string"
}
},
"rejected": {
"type": "array",
"items": {
"type": "string"
}
},
"messageId": {
"type": "string"
}
}
},
"runtime": "node",
"version": "1.2.0",
"description": "Sends structured emails via SMTP",
"capabilities": [
"email",
"smtp",
"notifications"
]
}