Agent Skills
› imcuttle/flipbook-app
› send-email
send-email
GitHub通过SMTP发送电子邮件,支持文本、HTML及文件内容。凭据从环境变量读取,默认使用163邮箱。适用于发送邮件、通知报告或附带文件内容的场景。
Trigger Scenarios
用户要求发送邮件
通过邮件交付通知或报告
需要将文件内容以邮件形式发送
Install
npx skills add imcuttle/flipbook-app --skill send-email -g -y
SKILL.md
Frontmatter
{
"name": "send-email",
"description": "Use when the user wants to send an email, deliver a notification\/report by email, or email a file's contents. Sends via SMTP using credentials from environment variables (SMTP_HOST\/PORT\/USER\/TOKEN). Defaults to the 163 mailbox configured in this environment."
}
send-email
Send email via SMTP. Credentials come from environment variables, never hardcoded.
Credentials (environment variables)
| Var | Meaning | Example |
|---|---|---|
SMTP_HOST |
SMTP server | smtp.163.com |
SMTP_PORT |
port — 465 = SSL, 587 = STARTTLS |
465 |
SMTP_USER |
login user / default From | imcuttle@163.com |
SMTP_TOKEN |
authorization code / app password (NOT login password for 163/QQ) | — |
SMTP_FROM |
optional, overrides From | — |
Usage
python3 ./scripts/send_email.py \
--to imcuttle@163.com \
--subject "主题" \
--body "正文文本"
Other body sources and options:
--body-file /path/to/body.txt— read body from a file- piped stdin:
echo "正文" | ... send_email.py --to a@x.com --subject "Hi" --html— treat body as HTML--to/--cc/--bcc— repeatable for multiple recipients--from— override the From address
Run python3 ./scripts/send_email.py --help for the full list.
Notes
- Port 465 → SSL (
SMTP_SSL); any other port → plain SMTP + STARTTLS. - Prints
OK: sent from ... to ... via host:porton success; exits non-zero with anERROR:line if a credential env var is missing. - Never echo
SMTP_TOKEN; only read it from the environment.
Version History
- be3a7e6 Current 2026-07-05 18:23


