Install
openclaw skills install email-reporterGeneric email reporting tool for OpenClaw agents. Auto-converts Markdown to PDF and sends as attachments.
openclaw skills install email-reporterA unified email reporting tool for OpenClaw agents. Automatically converts Markdown reports to PDF when images are detected, and sends them as attachments.
clawhub install email-reporter
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"
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
}
python3 email_reporter.py report.md --sender me@qq.com --to friend@example.com
# 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"
import subprocess
# Send a report
subprocess.run([
"python3", "skills/email-reporter/email_reporter.py",
"reports/analysis.md",
"--agent", "invest-agent",
"--to", "recipient@example.com"
])
| Scenario | Format | Delivery |
|---|---|---|
| Plain text (<100KB) | Markdown | Direct |
| With images or >500KB | Attachment | |
| Data tables | Markdown + CSV | Attachment bundle |
EMAIL_SMTP_PASSEMAIL_SMTP_PASSexport EMAIL_SMTP_HOST="smtp.office365.com"
export EMAIL_SMTP_PORT="587"
# Test SMTP connection
python3 -c "
import smtplib
s = smtplib.SMTP('smtp.qq.com', 587)
s.starttls()
s.login('your-email@qq.com', 'your-auth-code')
print('Login OK')
"
# Install dependencies
pip install markdown weasyprint
# For Linux (Ubuntu/Debian)
sudo apt-get install libpango-1.0-0 libpangoft2-1.0-0
MIT