360 Secure SkillHub
360 安全技能中心

Email Send

该 Skill 说明如何用 msmtp 命令行经 SMTP 发送简单邮件:通过管道传入正文或包含 To/Subject 的完整头信息,支持 --cc、--bcc、--attach 选项,需要 SMTP_HOST、SMTP_PORT、SMTP_USER、SMTP_PASS 环境变量,并提供 dnf 安装方式。

xejrax
xejrax
热度 98.03
最近更新 2026-05-17 11:21:13
分类:协作依赖:代码执行 / 读写文件 / 第三方 API应用场景:邮件起草 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add email-send
Metadata
name
email-send
description
Send a quick email via SMTP using `msmtp` without opening a full mail client.
metadata
{"openclaw":{"emoji":"📧","requires":{"bins":["msmtp"]},"install":[{"id":"dnf","kind":"dnf","package":"msmtp","bins":["msmtp"],"label":"Install msmtp (dnf)"}]}}

Email Send Skill

Send a quick email via SMTP without opening the full himalaya client. Requires SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS env vars.

Sending Email

Send a basic email:

echo "Meeting at 3pm tomorrow." | msmtp recipient@example.com

Send with subject and headers:

printf "To: recipient@example.com\nSubject: Quick update\n\nHey, the deploy is done." | msmtp recipient@example.com

Options

  • --cc -- carbon copy recipients
  • --bcc -- blind carbon copy recipients
  • --attach <file> -- attach a file

Install

sudo dnf install msmtp