Email Send (SMTP & Resend API) for Openclaw

A versatile email automation skill for Openclaw Skills that supports sending plain text, HTML, and attachments via SMTP or Resend API.

xiwan
v1.0.1
Feb 9, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install smtp-send

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install smtp-send using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Email Send (SMTP & Resend API)?

The smtp-send skill is a powerful tool designed for developers who need to integrate email capabilities into their Openclaw Skills workflows. It provides a flexible interface to send messages through popular SMTP providers like Gmail, Outlook, 163, and QQ, or modern cloud APIs like Resend.\n\nWhether you need to send a simple text notification, a formatted HTML weekly report, or dispatch documents with multiple attachments, this skill handles the heavy lifting. It includes built-in security features and intelligent provider selection to ensure reliable delivery every time.

Email Send (SMTP & Resend API) Use Cases

  • Sending automated meeting reminders or follow-ups.\n- Dispatching weekly reports with rich HTML formatting.\n- Sending system notifications with log file attachments.\n- Integrating email alerts into larger AI agent workflows.\n- Managing mass communication using the Resend API for high deliverability.

How Email Send (SMTP & Resend API) Works

  1. The user provides recipient details, subject, and body content via the CLI or agent interface.\n2. The skill reads the local configuration file to identify available providers and credentials.\n3. Based on the configuration and parameters, it selects the delivery method (SMTP or Resend API).\n4. It constructs the email object, including any HTML content or file attachments specified.\n5. The message is transmitted securely using SSL/TLS for SMTP or the Resend REST API.\n6. It returns a success or error status to the Openclaw Skills environment for further action.

Email Send (SMTP & Resend API) Setup

To get started with this skill for Openclaw Skills, configure your credentials in ~/.smtp_config. You can provide SMTP details, Resend API keys, or both for fallback support:\n\njson\n{\n "resend_api_key": "re_xxxxx",\n "resend_from": "[email protected]",\n "host": "smtp.gmail.com",\n "port": 587,\n "user": "[email protected]",\n "password": "your-app-password",\n "from": "[email protected]",\n "use_ssl": false\n}\n\n\nAfter creating the file, secure your configuration by setting the correct permissions:\n\nbash\nchmod 600 ~/.smtp_config\n

Email Send (SMTP & Resend API) Data Schema & Taxonomy

The skill utilizes a structured configuration file and command-line arguments to manage data. Below are the primary parameters used during execution:\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| --to | Yes | Recipient email address |\n| --subject | Yes | Subject line of the email |\n| --body | Yes | Content of the message |\n| --html | No | Flag to send the body as an HTML document |\n| --attachments | No | Comma-separated paths to local files |\n| --provider | No | Choice of auto, smtp, or resend |

Email Send (SMTP & Resend API) Advanced Features

  • Automatic Provider Fallback: Intelligently switches from Resend to SMTP if the API fails when using the auto provider mode.\n- HTML Email Support: Send professionally formatted emails by passing the html flag with standard HTML tags.\n- Multi-Attachment Handling: Easily attach multiple documents or images by providing a list of file paths.\n- Secure Credential Storage: Keeps sensitive API keys and SMTP app passwords safe in a localized config file with restricted file permissions.\n- Wide Provider Compatibility: Optimized for major providers including Gmail, Outlook, and popular regional services like 163 and QQ Mail using Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*