send-email-programmatically

send-email-programmatically is a skill for Claude Code, Codex from besoeasy/open-skills. It costs 53 tokens per session (4,143 once invoked), scanned C, original, MIT.

A coding skill for sending emails from scripts through SMTP servers or email-service APIs.

In plain words
What is it for?
Use it for notifications, alerts, automated reports, summaries, error messages, confirmations, and other user communications.
Why use it?
It removes the need to build email delivery from scratch when an application must contact people automatically.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/besoeasy/open-skills/send-email-programmatically
Any agent
npx skills add besoeasy/open-skills --skill send-email-programmatically
Clone the repo
git clone --depth 1 https://github.com/besoeasy/open-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for send-email-programmatically

README.md
[![agentmods](https://agentmods.dev/badge/skills/besoeasy/open-skills/send-email-programmatically.svg)](https://agentmods.dev/skills/besoeasy/open-skills/send-email-programmatically)
Your own site
<a href="https://agentmods.dev/skills/besoeasy/open-skills/send-email-programmatically"><img src="https://agentmods.dev/badge/skills/besoeasy/open-skills/send-email-programmatically.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,143 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.04143
Opus 5 $0.00026 $0.02072
Sonnet 5 $0.00011 $0.00829
Haiku 4.5 $0.00005 $0.00414

Measured 5d ago against content hash 8eb97bd4a802, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

send-email-programmatically scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const res = await fetch('https://api.sendgrid.com/v3/mail/send', { method: 'POST',

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y curl msmtp msmtp-mta

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **curl** — For API-based email sending (pre-installed on most systems)
skills/send-email-programmatically/SKILL.md · 570 lines

How it starts

The opening of the file, as written. The whole thing — 570 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Send Email Programmatically

Send emails via SMTP, free APIs (Mailgun, SendGrid free tier), or privacy-focused services. Essential for notifications, alerts, automated reports, and user communication.

When to use

  • Use case 1: When the user asks to send email notifications or alerts
  • Use case 2: When you need to deliver automated reports or summaries
  • Use case 3: For error logging and monitoring alerts
  • Use case 4: When building user communication workflows (confirmations, updates)

Required tools / APIs

  • curl — For API-based email sending (pre-installed on most systems)
  • sendmail / msmtp — For SMTP email sending
  • Mailgun API — Free tier: 5,000 emails/month (requires API key)
  • SendGrid API — Free tier: 100 emails/day (requires API key)
  • mail.tm — Temporary email API (no API key required)

Install options:

# Ubuntu/Debian
sudo apt-get install -y curl msmtp msmtp-mta

# macOS (postfix is pre-installed, or use msmtp)
brew install msmtp

# Node.js
npm install nodemailer

Skills

send_email_via_smtp_curl

Send email using SMTP via curl (works with Gmail, Outlook, custom SMTP servers).

# Gmail SMTP example (requires app password)
SMTP_SERVER="smtp.gmail.com:587"
FROM_EMAIL="[email protected]"
TO_EMAIL="[email protected]"
SUBJECT="Test Email"
BODY="This is a test email sent via SMTP."
APP_PASSWORD="your-app-password"

# Send email
curl -v --url "smtp://${SMTP_SERVER}" \
  --mail-from "${FROM_EMAIL}" \
  --mail-rcpt "${TO_EMAIL}" \
  --user "${FROM_EMAIL}:${APP_PASSWORD}" \
  --upload-file - <<EOF
From: ${FROM_EMAIL}
To: ${TO_EMAIL}
Subject: ${SUBJECT}

${BODY}
EOF

# Outlook/Office365 SMTP
curl --url "smtp://smtp.office365.com:587" \
  --mail-from "[email protected]" \
  --mail-rcpt "[email protected]" \
  --user "[email protected]:your-password" \
  --ssl-reqd \
  --upload-file - <<EOF
From: [email protected]
To: [email protected]
Subject: Hello from Outlook

This is an automated email.
EOF

Read the full file on GitHub · 570 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 570 lines · 53 tokens per session scan C 8eb97bd4a802

Subscribe to this mod's changes

send-email-programmatically is a skill published in the GitHub repository besoeasy/open-skills (132 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 4,143 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 3 findings (sends data to an external url, asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-creator

Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.

zhayujie/CowAgent · 61 tokens

implementation-final-review

Perform the repository's risk-tiered independent final review before implementation completion. Use only when explicitly invoked or when repository instructions require it after behavior-impacting implementation work; audit the complete task diff, supported contracts, lifecycle and security boundaries, complexity, and…

openai/openai-agents-python · 58 tokens

metrics-instrumentation

Specification for instrumenting an opik-backend workflow with operational OpenTelemetry metrics — per-stage throughput/latency/error counters and native histograms, dimensioned per-customer (workspace). Use when a pipeline (scoring, ingestion, experiments, jobs) needs per-stage visibility. Covers metric emission only…

comet-ml/opik · 93 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

peekaboo

Capture and automate macOS UI with the Peekaboo CLI.

the-open-agent/openagent · 17 tokens

powerpoint

Create designed, editable PowerPoint .pptx presentations with PptxGenJS. Use when the user asks to create, generate, update, or inspect a deck, slide deck, presentation, or .pptx file.

the-open-agent/openagent · 48 tokens