mailerpress/get-campaign-send-html returns the exact HTML this campaign would send right now.
That is the compiled artifact, which is not what mailerpress/get-campaign returns.
At a glance
| Ability | mailerpress/get-campaign-send-html |
| Toolset | MailerPress — toolset/mailerpress |
| Group | MailerPress › Campaigns & Sending |
| Requires | AcrossAI Pro, plus MailerPress active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Pro 0.9.16 and later |
How it works
A campaign holds its content twice: a block-editor JSON tree, which is what the editor shows, and a compiled HTML artifact, which is what recipients receive. They are stored separately and can disagree.
The block tree is authored; the HTML is compiled from it. Nothing forces a compile, so a campaign edited programmatically — or edited and not saved through the editor — can have a current block tree and a stale artifact.
Recipients get the artifact. So a campaign that looks correct in the editor can send last week’s content, and there is no warning.
Use this to verify a campaign is actually current before trusting it, especially after any programmatic edit.
mailerpress/check-campaign-send-readiness does the same check as a verdict rather than as raw HTML, and can audit every campaign at once.
A campaign with no compiled HTML at all sends nothing, which is a different failure from sending the wrong thing and equally silent.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
id | integer | Yes | The campaign ID. |
What comes back
| Name | Type | What it is |
|---|---|---|
html | string | The compiled HTML, exactly as it would be sent. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
What would this campaign actually send?
It resolves to one call:
{
"ability": "mailerpress/get-campaign-send-html",
"parameters": {
"id": 44
}
}Worth knowing
- Recipients get this, not the block tree.
- Nothing forces a recompile, so the artifact can be stale.
- No artifact at all means the campaign sends nothing.
- Read-only.
Related abilities
- MailerPress Check Campaign Send Readiness — the same check as a verdict
- MailerPress Save Campaign Content — write both versions
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category