Install
$ agentstack add skill-jeffliu05042-send-email-skill-send-email ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Send Email
Use scripts/send_email.sh, resolved relative to this SKILL.md. It supports two explicit transports and never retries through a different transport automatically.
Safety
- Send only when the user explicitly authorizes delivery and supplies or confirms the recipient.
- Review the recipient, subject, body, and transport before execution. Never include credentials, private keys, or unrelated local data.
- Send exactly once. Investigate an uncertain result before retrying.
- Prefer a macOS Keychain item for SMTP passwords. Never place passwords in files, command arguments, commits, or user-facing output.
- Use plain-text content. Attachments and HTML are outside this skill's scope.
Select a Transport
local(default): use/usr/bin/mailand direct Postfix delivery. Choose only when the current network's sender IP is acceptable to the recipient domain.smtp: log in to a configured SMTP service over SSL or STARTTLS. Choose when direct delivery is blocked or authenticated sender identity is required. Read [references/smtp.md](references/smtp.md) before use.
Do not fall back from local to smtp automatically: a local result may be delayed or ambiguous, and fallback could send a duplicate.
Send
Pipe a generated body through standard input:
printf '%s\n' 'Report body' | \
/scripts/send_email.sh \
--transport local \
--to 'person@example.com' \
--subject 'Report subject'
For authenticated SMTP, configure the variables in [references/smtp.md](references/smtp.md), then change the transport:
printf '%s\n' 'Report body' | \
/scripts/send_email.sh \
--transport smtp \
--to 'person@example.com' \
--subject 'Report subject'
Alternatively pass --body-file '/absolute/path/report.txt'. Use --dry-run to validate inputs and configuration without sending or connecting to the SMTP server.
Interpret Results
SUBJECT_HEADER_READYreports ASCII or RFC 2047 subject preparation.LOCAL_MAIL_ACCEPTEDmeans/usr/bin/mailaccepted a local-transport message.SMTP_CONFIG_READYandSMTP_AUTHENTICATEDdescribe authenticated SMTP setup and login.REMOTE_SMTP_ACCEPTEDmeans the receiving SMTP server accepted the message; require it plus exit code0before reporting success.REMOTE_SMTP_REJECTED,REMOTE_DELIVERY_DEFERRED,REMOTE_DELIVERY_UNCONFIRMED,SMTP_AUTH_FAILED, andSMTP_SEND_FAILEDare failures.- Say the receiving SMTP server accepted the message; do not claim the recipient read it.
- On nonzero exit, report the exact failure and do not silently switch transports or retry.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jeffliu05042
- Source: jeffliu05042/send-email-skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.