名称: email-send
描述: "通过 msmtp 使用 SMTP 快速发送邮件,无需打开完整的邮件客户端。"
元数据:
{
"openclaw":
{
"emoji": "📧",
"requires": { "bins": ["msmtp"] },
"install":
[
{
"id": "dnf",
"kind": "dnf",
"package": "msmtp",
"bins": ["msmtp"],
"label": "安装 msmtp (dnf)",
},
],
},
}
无需打开完整的 himalaya 客户端,即可通过 SMTP 快速发送邮件。需要设置环境变量 SMTP_HOST、SMTP_PORT、SMTP_USER 和 SMTP_PASS。
发送基础邮件:
echo "明天下午3点开会。" | msmtp recipient@example.com
发送带主题和邮件头的邮件:
printf "To: recipient@example.com\nSubject: 快速更新\n\n嘿,部署已完成。" | msmtp recipient@example.com
--cc -- 抄送收件人--bcc -- 密送收件人--attach <文件> -- 添加附件sudo dnf install msmtp