SMTP Sender for Openclaw

A robust SMTP automation skill for sending Markdown-formatted emails with attachments and retry logic.

xlbbb-cn
v1.0.2
Mar 3, 2026
1
2.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install smtp-sender

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-sender 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 SMTP Sender?

The SMTP Sender is a specialized component within the Openclaw Skills ecosystem designed to bridge the gap between automated agent workflows and traditional email communication. It allows users to send rich-text emails, including HTML and Markdown support, while ensuring reliability through built-in retry mechanisms.

By leveraging a centralized configuration file, this skill enables seamless integration of email notifications and report delivery into any AI-driven process. It is built to be lightweight yet resilient, making it a foundational tool for developers who need to automate outbound communications via Openclaw Skills.

SMTP Sender Use Cases

  • Sending automated status reports after task completion within Openclaw Skills.
  • Notifying team members of critical system alerts or project updates automatically.
  • Distributing PDF reports or logs as attachments directly from an AI agent workflow.
  • Standardizing outbound communication using Markdown-to-HTML conversion for professional formatting.

How SMTP Sender Works

  1. The skill reads the SMTP server credentials and configuration from a secured JSON file located in the skill directory.
  2. It processes the input body content, optionally converting Markdown syntax into formatted HTML for the email body.
  3. The script identifies and attaches any specified local files to the email draft.
  4. It initiates a secure connection and attempts to transmit the email via the configured SMTP server.
  5. If a networking or temporary error occurs, it implements a 3-try retry logic, logging every attempt for auditing purposes.

SMTP Sender Setup

First, create a configuration file at ~/.openclaw/workspace/skills/smtp-sender/smtp-config.json with your provider details:

{
  "server": "smtp.example.com",
  "port": 465,
  "username": "[email protected]",
  "password": "your-password",
  "emailFrom": "[email protected]",
  "useTLS": true
}

Ensure file permissions are secured using chmod 600 smtp-config.json. This configuration is a prerequisite for the script to function correctly within the Openclaw Skills environment.

SMTP Sender Data Schema & Taxonomy

The skill manages data through a combination of configuration files and CLI arguments:

Component Type Description
smtp-config.json JSON Stores server host, port, credentials, and TLS settings.
--to Argument The recipient's email address.
--subject Argument The email subject line.
--body Argument The content (supports Markdown).
--attachments Argument Path(s) to files to be included in the email.
Logs File Internal records of sent emails and failure reasons.

SMTP Sender Advanced Features

  • Built-in retry logic that handles temporary network failures automatically to ensure high delivery rates.
  • Native Markdown-to-HTML transformation allowing for rich text formatting without writing manual HTML code.
  • Multi-attachment support for sending complex reports or datasets in a single execution.
  • Comprehensive logging of all outbound activity for security auditing and debugging within the Openclaw Skills framework.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*