Smtp Send logo

Smtp Send

Community
viralcode
smtp-send

Send emails via SMTP with support for plain text, HTML, and attachments. Use when the user asks to send an email, email someone, or compose and send a message. Supports single recipients and can include file attachments. Works with Gmail, Outlook, Yahoo, QQ Mail, 163 Mail, and any SMTP server.

Overview

Publisherviralcode
Repositoryopenwhale
Skill namesmtp-send
Stars
65
Forks
11
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by viralcode on GitHub. Read the source before you install it.

Installation

Install the Smtp Send AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/viralcode/openwhale.git /tmp/openwhale
mkdir -p .claude/skills
cp -r /tmp/openwhale/skills/smtp-send .claude/skills/smtp-send
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Smtp Send in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Smtp Send on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Smtp Send is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SMTP Send

Send emails via SMTP with support for text, HTML formatting, and file attachments. Works with Gmail, Outlook, Yahoo, QQ Mail, 163 Mail, and any SMTP server.

Quick Start

Send a simple email:

bash
python3 scripts/send_email.py \
  --to recipient@example.com \
  --subject "Meeting Tomorrow" \
  --body "Hi, let's meet at 2pm tomorrow."

Send HTML email:

bash
python3 scripts/send_email.py \
  --to recipient@example.com \
  --subject "Weekly Report" \
  --body "<h1>Report</h1><p>Here are the updates...</p>" \
  --html

Send with attachments:

bash
python3 scripts/send_email.py \
  --to recipient@example.com \
  --subject "Documents" \
  --body "Please find the attached files." \
  --attachments report.pdf,data.csv

Setup

One-time configuration required. Create ~/.smtp_config:

json
{
  "host": "smtp.gmail.com",
  "port": 587,
  "user": "your-email@gmail.com",
  "password": "your-app-password",
  "from": "your-email@gmail.com",
  "use_ssl": false
}

For Gmail users: Must use App Password (not regular password). See setup.md for detailed instructions on generating app passwords for Gmail, Yahoo, QQ Mail, 163 Mail, and other providers.

Alternatively, use environment variables (see setup.md).

Parameters

  • --to: Recipient email address (required)
  • --subject: Email subject line (required)
  • --body: Email body content (required)
  • --html: Send as HTML email (optional flag)
  • --attachments: Comma-separated file paths (optional)

Common Patterns

User provides recipient and content

When the user says "email john@example.com about the meeting," extract the recipient and compose appropriate subject/body.

User provides only content

If the user says "send an email saying the report is ready" without specifying a recipient, ask who to send it to.

File attachments

When the user mentions "attach the file" or "send the document," use --attachments with the file path. Multiple files can be separated by commas.

HTML formatting

Use --html when the user wants formatted content (headings, lists, emphasis) or explicitly asks for HTML email.

Error Handling

Missing config: If ~/.smtp_config not found and environment variables not set, the script will print an example config and exit. Guide the user to create the config file with their SMTP settings.

Authentication failed: Usually means incorrect password or need to use app password. Direct user to setup.md for provider-specific instructions.

Missing attachments: Script warns but continues sending email without that attachment.

Connection timeout: Check SMTP host/port settings or network connectivity.

Security

  • Credentials stored in ~/.smtp_config (file permissions should be 600)
  • Or use environment variables for better security
  • App passwords recommended over regular passwords
  • Config file should not be committed to version control

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Smtp Send AI skill do?

Send emails via SMTP with support for plain text, HTML, and attachments. Use when the user asks to send an email, email someone, or compose and send a message. Supports single recipients and can include file attachments. Works with Gmail, Outlook, Yahoo, QQ Mail, 163 Mail, and any SMTP server.

Why use Smtp Send on TypingMind?

Because you install it once and use it with any model. Smtp Send is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Smtp Send in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/viralcode/openwhale/tree/main/skills/smtp-send. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Smtp Send?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Smtp Send?

As many as you like. As long as a model supports skills, you can use Smtp Send with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Smtp Send AI skill free?

It is published on GitHub by viralcode. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇