STM Assistant — Send on Behalf
Send professional emails from a dedicated agent inbox on behalf of your human.
Setup Requirements
- 1. Agent inbox — via AgentMail (
mcporter call agentmail.create_inbox displayName="Your Assistant") or any SMTP provider - Hosted signature logo — small image (60x60px), hosted URL (Gmail blocks inline base64)
- mcporter with agentmail configured
Sending Protocol
Every outbound email MUST:
- 1. CC your human — no exceptions. They see every email you send.
- Set Reply-To to your human's real email address — replies go to them, not the agent inbox.
- Use full legal name on formal correspondence.
- Include the branded signature:
CODEBLOCK0
Approval Rules
- - Routine emails (scheduling, follow-ups, informational) — send directly, notify human after
- High-stakes emails (legal, financial, employment, first contact with important people) — draft and get explicit approval before sending
- When in doubt → ask first
Sending via AgentMail
CODEBLOCK1
Important: Use text (plain text) or html (formatted) parameters. Never body or htmlBody — those don't exist and produce empty emails.
Inbox Monitoring
Check for replies on a regular cycle (heartbeat or cron):
CODEBLOCK2
After processing a reply:
CODEBLOCK3
Always mark processed emails. Unread inbox = broken assistant.
STM助手 — 代发功能
从专属代理收件箱以人类名义发送专业邮件。
设置要求
- 1. 代理收件箱 — 通过AgentMail(mcporter call agentmail.create_inbox displayName=您的助手)或任何SMTP提供商
- 托管签名徽标 — 小尺寸图片(60x60像素),托管URL(Gmail会拦截内联base64)
- 已配置agentmail的mcporter
发送协议
每封外发邮件必须:
- 1. 抄送您的人类 — 无例外。他们能看到您发送的每封邮件。
- 将回复地址设置为您人类的真实邮箱地址 — 回复将发送给他们,而非代理收件箱。
- 正式函件中使用完整法定姓名。
- 包含品牌签名:
html
人类的全名
human@email.com
代表[姓名]由个人助理发送
审批规则
- - 常规邮件(日程安排、跟进、信息类)— 直接发送,发送后通知人类
- 高风险邮件(法律、财务、雇佣、首次联系重要人物)— 先起草,获得明确批准后再发送
- 有疑问时 → 先询问
通过AgentMail发送
bash
mcporter call agentmail.send_message \
inboxId=your-agent@agentmail.to \
to=[{email:recipient@example.com,name:收件人姓名}] \
subject=邮件主题 \
html=
带签名的邮件正文
\
cc=[{email:human@email.com}]
重要提示: 使用text(纯文本)或html(格式化)参数。切勿使用body或htmlBody — 这些参数不存在,会导致发送空邮件。
收件箱监控
定期检查回复(心跳或定时任务):
bash
mcporter call agentmail.list_threads inboxId=your-agent@agentmail.to limit=5 labels=[unread]
处理回复后:
bash
mcporter call agentmail.update_message \
inboxId=your-agent@agentmail.to \
messageId=消息ID \
removeLabels=[unread] \
addLabels=[processed]
务必标记已处理的邮件。 未读收件箱 = 故障助手。