Skip to main content

email

Send emails via SMTP or sendmail. Use when sending transactional emails or notifications programmatically.

来源信息

仓库
fworks-tech/agenthood
最近来源活动
2026年9月16日 21:10
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
email
description
Send emails via SMTP or sendmail. Use when sending transactional emails or notifications programmatically.
license
MIT
metadata
{"category":"messaging","dependencies":{"cli":"sendmail","checkCommand":"which sendmail || which msmtp","install":{"darwin":"[Truncated]","linux":"[Truncated]"}},"config":[{"name":"SMTP_HOST","label":"SMTP Server","type":"string","required":false},{"name":"SMTP_PORT","label":"SMTP Port","type":"string","required":false}]}
# Email Send emails via command line. ## Using sendmail/msmtp - Send email: `echo "Body" | sendmail recipient@example.com` - With subject: `echo -e "Subject: Hello\n\nBody text" | sendmail -t recipient@example.com` ## Using SMTP with curl ``` curl --url "smtps://${SMTP_HOST}:${SMTP_PORT}" \ --mail-from "sender@example.com" \ --mail-rcpt "recipient@example.com" \ --user "${SMTP_USER}:${SMTP_PASS}" \ --upload-file email.txt ``` ## email.txt format ``` From: Sender <sender@example.com> To: Recipient <recipient@example.com> Subject: Subject line Content-Type: text/plain; charset=utf-8 Body text here. ``` ## Notes - Configure msmtp at `~/.msmtprc` - Never hardcode SMTP credentials in scripts
在 GitHub 查看