Search

PythonReactSEOPDF
OpenClaw

email-reporter

Generic email reporting tool for OpenClaw agents. Auto-converts Markdown to PDF and sends as attachments.

dirkcaiusa0 source installs☆ 0 Repository starsv2.0.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install dirkcaiusa/email-reporter

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Email Reporter Skill

Overview

A unified email reporting tool for OpenClaw agents. Automatically converts Markdown reports to PDF when images are detected, and sends them as attachments.

Features

  • Smart Format Detection: Auto-converts to PDF for reports with images or large files (>500KB)
  • Markdown Support: Native Markdown rendering with syntax highlighting
  • Flexible Configuration: Environment variables or config file for email settings
  • Multiple Backends: Support for msmtp, SMTP, and sendmail

Installation

clawhub install email-reporter

Configuration

Option 1: Environment Variables (Recommended)
export EMAIL_SENDER="your-email@qq.com"
export EMAIL_RECIPIENT="recipient@example.com"
export EMAIL_SMTP_HOST="smtp.qq.com"
export EMAIL_SMTP_PORT="587"
export EMAIL_SMTP_USER="your-email@qq.com"
export EMAIL_SMTP_PASS="your-auth-code"
Option 2: Config File

Create ~/.email_reporter.conf:

{
  "sender": "your-email@qq.com",
  "recipient": "recipient@example.com",
  "smtp_host": "smtp.qq.com",
  "smtp_port": 587,
  "smtp_user": "your-email@qq.com",
  "smtp_pass": "your-auth-code",
  "use_msmtp": false
}
Option 3: Command Line
python3 email_reporter.py report.md --sender me@qq.com --to friend@example.com

Usage

Basic Usage
# Send report to default recipient
python3 email_reporter.py report.md

# Specify agent name (used in subject)
python3 email_reporter.py report.md --agent "my-agent"

# Custom recipient
python3 email_reporter.py report.md --to "friend@example.com"

# Custom subject
python3 email_reporter.py report.md --subject "My Analysis Report"
In Your Agent
import subprocess

# Send a report
subprocess.run([
    "python3", "skills/email-reporter/email_reporter.py",
    "reports/analysis.md",
    "--agent", "invest-agent",
    "--to", "recipient@example.com"
])

File Format Selection

| Scenario | Format | Delivery | |------...

Source information

Source
github
Repository
openclaw/skills
Path
skills/dirkcaiusa/email-reporter
Version
2.0.0
Commit
a7bb1f6b05a4614768370737a3a52d24ce18c6b3
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

Email Reporter Skill v2.0.0

Generic email reporting tool for OpenClaw agents. Auto-converts Markdown to PDF and sends as attachments.

Installation

# Clone or download this skill
cd email-reporter

# Install dependencies
pip install markdown weasyprint

# For Ubuntu/Debian - install system dependencies
sudo apt-get install libpango-1.0-0 libpangoft2-1.0-0

Configuration

Option 1: Environment Variables (Recommended)
export EMAIL_SENDER="your-email@qq.com"
export EMAIL_RECIPIENT="recipient@example.com"
export EMAIL_SMTP_HOST="smtp.qq.com"
export EMAIL_SMTP_PORT="587"
export EMAIL_SMTP_USER="your-email@qq.com"
export EMAIL_SMTP_PASS="your-auth-code"
Option 2: Interactive Setup Wizard
python3 email_reporter.py --setup
Option 3: Command Line (Per-use)
python3 email_reporter.py report.md --sender me@qq.com --to friend@example.com

Usage

# Basic usage
python3 email_reporter.py report.md

# With agent name
python3 email_reporter.py report.md --agent "my-agent"

# Custom recipient
python3 email_reporter.py report.md --to "friend@example.com"

# Custom subject
python3 email_reporter.py report.md --subject "Weekly Report"

Files

  • email_reporter.py - Main entry point
  • md2pdf.py - Markdown to PDF converter
  • send_attachment.py - Email sender with SMTP/msmtp support

SMTP Setup

QQ Mail
  1. Enable SMTP: 设置 → 账户 → 开启SMTP服务
  2. Generate auth code (NOT your password!)
  3. Use auth code as EMAIL_SMTP_PASS
Gmail
  1. Enable 2FA
  2. Generate App Password
  3. Use app password as EMAIL_SMTP_PASS
Outlook/Office 365
export EMAIL_SMTP_HOST="smtp.office365.com"
export EMAIL_SMTP_PORT="587"

License

MIT

Extracted content

SKILL.md
# Email Reporter Skill

## Overview
A unified email reporting tool for OpenClaw agents. Automatically converts Markdown reports to PDF when images are detected, and sends them as attachments.

## Features

- **Smart Format Detection**: Auto-converts to PDF for reports with images or large files (>500KB)
- **Markdown Support**: Native Markdown rendering with syntax highlighting
- **Flexible Configuration**: Environment variables or config file for email settings
- **Multiple Backends**: Support for msmtp, SMTP, and sendmail

## Installation

```bash
clawhub install email-reporter
```

## Configuration

### Option 1: Environment Variables (Recommended)

```bash
export EMAIL_SENDER="your-email@qq.com"
export EMAIL_RECIPIENT="recipient@example.com"
export EMAIL_SMTP_HOST="smtp.qq.com"
export EMAIL_SMTP_PORT="587"
export EMAIL_SMTP_USER="your-email@qq.com"
export EMAIL_SMTP_PASS="your-auth-code"
```

### Option 2: Config File

Create `~/.email_reporter.conf`:

```json
{
  "sender": "your-email@qq.com",
  "recipient": "recipient@example.com",
  "smtp_host": "smtp.qq.com",
  "smtp_port": 587,
  "smtp_user": "your-email@qq.com",
  "smtp_pass": "your-auth-code",
  "use_msmtp": false
}
```

### Option 3: Command Line

```bash
python3 email_reporter.py report.md --sender me@qq.com --to friend@example.com
```

## Usage

### Basic Usage

```bash
# Send report to default recipient
python3 email_reporter.py report.md

# Specify agent name (used in subject)
python3 email_reporter.py report.md --agent "my-agent"

# Custom recipient
python3 email_reporter.py report.md --to "friend@example.com"

# Custom subject
python3 email_reporter.py report.md --subject "My Analysis Report"
```

### In Your Agent

```python
import subprocess

# Send a report
subprocess.run([
    "python3", "skills/email-reporter/email_reporter.py",
    "reports/analysis.md",
    "--agent", "invest-agent",
    "--to", "recipient@example.com"
])
```

## File Format Selection

| Scenario | Format | Delivery |
|------...
README
# Email Reporter Skill v2.0.0

Generic email reporting tool for OpenClaw agents. Auto-converts Markdown to PDF and sends as attachments.

## Installation

```bash
# Clone or download this skill
cd email-reporter

# Install dependencies
pip install markdown weasyprint

# For Ubuntu/Debian - install system dependencies
sudo apt-get install libpango-1.0-0 libpangoft2-1.0-0
```

## Configuration

### Option 1: Environment Variables (Recommended)

```bash
export EMAIL_SENDER="your-email@qq.com"
export EMAIL_RECIPIENT="recipient@example.com"
export EMAIL_SMTP_HOST="smtp.qq.com"
export EMAIL_SMTP_PORT="587"
export EMAIL_SMTP_USER="your-email@qq.com"
export EMAIL_SMTP_PASS="your-auth-code"
```

### Option 2: Interactive Setup Wizard

```bash
python3 email_reporter.py --setup
```

### Option 3: Command Line (Per-use)

```bash
python3 email_reporter.py report.md --sender me@qq.com --to friend@example.com
```

## Usage

```bash
# Basic usage
python3 email_reporter.py report.md

# With agent name
python3 email_reporter.py report.md --agent "my-agent"

# Custom recipient
python3 email_reporter.py report.md --to "friend@example.com"

# Custom subject
python3 email_reporter.py report.md --subject "Weekly Report"
```

## Files

- `email_reporter.py` - Main entry point
- `md2pdf.py` - Markdown to PDF converter
- `send_attachment.py` - Email sender with SMTP/msmtp support

## SMTP Setup

### QQ Mail
1. Enable SMTP: 设置 → 账户 → 开启SMTP服务
2. Generate auth code (NOT your password!)
3. Use auth code as EMAIL_SMTP_PASS

### Gmail
1. Enable 2FA
2. Generate App Password
3. Use app password as EMAIL_SMTP_PASS

### Outlook/Office 365
```bash
export EMAIL_SMTP_HOST="smtp.office365.com"
export EMAIL_SMTP_PORT="587"
```

## License

MIT

Related skills

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

sixtyfour-skill

rxhxm

Agent Skill (SKILL.md) for Sixtyfour AI — People & company intelligence API. Enrich leads, find emails/phones, qualify prospects, search people. For Claude Code, Codex, OpenClaw, Cursor.

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance

OpenClaw

139mail

chang-tong

139邮箱邮件收发 Skill - 支持 IMAP/SMTP 协议,兼容139/QQ/163/Gmail等主流邮箱 功能: 1. 发送邮件(SMTP) 2. 接收邮件(IMAP) 3. 查看收件箱列表 4. 查看未读邮件 当用户提到 "发邮件"、"收邮件"、"查看邮件"、"邮箱"...