email-smtp-send
3
总安装量
3
周安装量
#56882
全站排名
安装命令
npx skills add https://github.com/fadeloo/skills --skill email-smtp-send
Agent 安装分布
openclaw
3
gemini-cli
3
github-copilot
3
codex
3
kimi-cli
3
cursor
3
Skill 文档
Email SMTP Send
Core Goal
- Send outbound email via SMTP with env-configured credentials.
- Validate SMTP configuration before delivery.
- Return machine-readable JSON status/error output.
Workflow
- Configure SMTP env vars (see
references/env.mdandassets/config.example.env). - Validate configuration:
python3 scripts/smtp_send.py check-config
- Send one email:
python3 scripts/smtp_send.py send \
--to recipient@example.com \
--subject "SMTP test" \
--body "Hello from email-smtp-send"
Output Contract
check-configprints sanitized SMTP config JSON.sendsuccess prints atype=statusrecord with:event=smtp_sent- sender, recipient summary, subject, SMTP host/port
sendfailure printstype=errorwithevent=smtp_send_failedto stderr.
Parameters
send --to: required recipient, repeatable or comma-separated.send --cc: optional CC recipients.send --bcc: optional BCC recipients.send --subject: optional subject (defaults from env).send --body: optional body (defaults from env).send --content-type:plainorhtml.send --from: optional sender override.
Environment defaults:
SMTP_HOST,SMTP_PORT,SMTP_SSL,SMTP_STARTTLSSMTP_USERNAME,SMTP_PASSWORD,SMTP_FROM,SMTP_CONNECT_TIMEOUTSMTP_SUBJECT,SMTP_BODY,SMTP_CONTENT_TYPE
Error Handling
- Invalid env config exits with code
2. - Send failure exits with code
1and JSON error detail.
References
references/env.md
Assets
assets/config.example.env
Scripts
scripts/smtp_send.py