Agent Skillsimcuttle/flipbook-app › send-email

send-email

GitHub

通过SMTP发送电子邮件,支持文本、HTML及文件内容。凭据从环境变量读取,默认使用163邮箱。适用于发送邮件、通知报告或附带文件内容的场景。

.codebuddy/skills/send-email/SKILL.md imcuttle/flipbook-app

Trigger Scenarios

用户要求发送邮件 通过邮件交付通知或报告 需要将文件内容以邮件形式发送

Install

npx skills add imcuttle/flipbook-app --skill send-email -g -y
More Options

Non-standard path

npx skills add https://github.com/imcuttle/flipbook-app/tree/main/.codebuddy/skills/send-email -g -y

Use without installing

npx skills use imcuttle/flipbook-app@send-email

指定 Agent (Claude Code)

npx skills add imcuttle/flipbook-app --skill send-email -a claude-code -g -y

安装 repo 全部 skill

npx skills add imcuttle/flipbook-app --all -g -y

预览 repo 内 skill

npx skills add imcuttle/flipbook-app --list

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:port on success; exits non-zero with an ERROR: 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

Same Skill Collection

.codebuddy/skills/canvas-to-social/SKILL.md
.codebuddy/skills/hot-canvas-batch/SKILL.md
.codebuddy/skills/hot-canvas-to-social/SKILL.md

Metadata

Files
0
Version
be3a7e6
Hash
6c941b18
Indexed
2026-07-05 18:23

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-09 00:04
浙ICP备14020137号-1 $bản đồ khách truy cập$