mAYL_send_as_agent
Send an email ATTRIBUTED TO THE AGENT (provenance-stamped). Unlike mAYL_send (sends as the user), this stamps sent_by='agent' plus your agent_id and optional task_id onto the email record and audit trail — so recipients and compliance can see the mail was agent-originated. Auth: presents a hub-claim JWT (needs MOSADD_API_KEY). The mp0st-send EF verifies the claim with HUB_JWT_SECRET; body trust is never granted for provenance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| subject | Yes | ||
| task_id | No | Optional id of the task/run this send belongs to. Stamped as sent_by_task_id. | |
| agent_id | Yes | Stable id of the agent doing the send. Stamped as sent_by_agent_id for provenance. | |
| reply_to | No | ||
| tracking | No | ||
| body_html | No | ||
| body_text | No |