<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
octos-org/octos/send-email
──Details
PublishedOctober 20, 2026 at 10:32 PM
Content Hashsha256:59f6632aa454217e...
Git SHAed92309a3fca
──Files
Files (1 file, 2.9 KB)
SKILL.md2.9 KBactive
SKILL.md · 101 lines · 2.9 KB

name: send-email description: Send emails via SMTP or Feishu/Lark Mail. Triggers: send email, 发邮件, email to, 发送邮件, mail, send mail. version: 1.0.0 author: octos always: false


Send Email Skill

Overview

This skill provides the send_email tool for sending emails via SMTP or Feishu/Lark Mail. It is a standalone binary with no LLM dependencies -- pure networking only.

Usage

Call send_email with the following parameters:

  • to (required, string): Recipient email address.
  • subject (required, string): Email subject line.
  • body (required, string): Plain text email body.
  • provider (optional, string): Either "smtp" or "feishu". If omitted, the tool auto-detects based on which environment variables are present.
  • html (optional, bool): When true, the body parameter is treated as HTML content. For SMTP this sends a multipart/alternative message with both plain text and HTML parts. For Feishu the body is sent as HTML directly.

Providers

SMTP

Sends email via any SMTP server (Gmail, Outlook, custom, etc.) using TLS.

Required environment variables:

VariableDescriptionExample
SMTP_HOSTSMTP server hostnamesmtp.gmail.com
SMTP_PORTSMTP server port (465 for implicit TLS, 587 for STARTTLS)587
SMTP_USERNAMESMTP login usernameuser@gmail.com
SMTP_PASSWORDSMTP login password or app-specific passwordabcdefghijklmnop
SMTP_FROMSender email addressuser@gmail.com

Feishu / Lark

Sends email via the Feishu (or Lark) Open API using a tenant access token.

Required environment variables:

VariableDescriptionExample
LARK_APP_IDFeishu/Lark application IDcli_a9150c716078c07e
LARK_APP_SECRETFeishu/Lark application secretIrPGLtOq...
LARK_FROM_ADDRESSSender email address in Feishu Mailsender@company.com

Optional environment variable:

VariableDescriptionDefault
LARK_REGIONSet to "global" or "lark" to use open.larksuite.com; otherwise uses open.feishu.cnfeishu

Provider Auto-Detection

If provider is not specified in the tool call:

  1. If SMTP_HOST is set, uses SMTP.
  2. If LARK_APP_ID is set, uses Feishu.
  3. If neither is set, the tool returns an error.

Examples

Send a plain text email via SMTP

json
{
"to": "recipient@example.com",
"subject": "Meeting Tomorrow",
"body": "Hi, just a reminder about our meeting tomorrow at 10am."
}

Send an HTML email via Feishu

json
{
"to": "recipient@example.com",
"subject": "Weekly Report",
"body": "<h1>Weekly Report</h1><p>All tasks completed.</p>",
"provider": "feishu",
"html": true
}

Explicitly select SMTP provider

json
{
"to": "recipient@example.com",
"subject": "Hello",
"body": "Plain text content here.",
"provider": "smtp"
}
All versions