# claw-email-skill

Adopt this skill: https://proskills.md/skills/other/liubindashen-claw-email-skill

Page: https://proskills.md/skills/other/liubindashen-claw-email-skill
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: SKILL.md
size: 764
upstream: https://github.com/liubindashen/claw-email-skill/blob/HEAD/SKILL.md

````text
---
name: claw-email-skill
description: "Email sending skill for OpenClaw, support SMTP service, custom recipient, subject and content"
metadata: {"emoji": "📧", "category": "utility"}
---

# claw-email-skill
邮件发送OpenClaw技能，支持通过SMTP协议发送邮件。

## 适用场景
- 发送任务完成提醒
- 发送告警通知
- 定时发送报表、日志
- 批量邮件发送

## 使用方法
```bash
# 直接调用
python3 send_email.py <收件人邮箱> <邮件主题> <邮件正文内容>
```

## 参数说明
| 参数顺序 | 参数类型 | 必须 | 说明 |
|---------|---------|------|------|
| 1 | string | 是 | 收件人邮箱，多个用英文逗号分隔 |
| 2 | string | 是 | 邮件主题 |
| 3 | string | 是 | 邮件正文内容 |
````

## File: README.md
upstream: https://github.com/liubindashen/claw-email-skill/blob/HEAD/README.md

````text
# claw-email-skill
基于163邮箱SMTP的邮件发送OpenClaw技能，支持自定义收件人、主题、内容，支持命令行调用和Python导入调用两种方式。

## 功能特性
- ✅ 支持纯文本邮件发送
- ✅ 命令行一键调用
- ✅ 支持Python模块导入调用
- ✅ 自动SSL加密传输，安全可靠
- ✅ 兼容所有支持SMTP协议的邮箱服务（默认配置163邮箱，可自行修改适配其他邮箱）

## 环境依赖
- Python 3.6+
- 无第三方依赖，使用标准库smtplib、email模块

## 使用方法
### 方式1：命令行调用
```bash
python3 send_email.py <收件人邮箱> <邮件主题> <邮件正文内容>
```

#### 示例
```bash
python3 send_email.py "example@example.com" "测试邮件" "这是一封测试邮件内容"
```

### 方式2：Python模块导入调用
```python
from send_email import send_mail

# 参数说明
# to: 收件人邮箱，多个收件人用英文逗号分隔
# subject: 邮件主题
# content: 邮件正文内容
send_mail(to="example@example.com", subject="测试邮件", content="这是测试内容")
```

## 配置说明
使用前需要修改`send_email.py`中的邮箱配置：
```python
# 发件人邮箱配置
SENDER = "{{你的发件人邮箱地址}}"
# 邮箱SMTP授权码（163邮箱在设置→POP3/SMTP/IMAP中获取）
AUTH_CODE = "{{你的邮箱SMTP授权码}}"
# SMTP服务器地址（163邮箱为smtp.163.com，其他邮箱请修改为对应服务地址）
SMTP_SERVER = "smtp.163.com"
# SMTP端口（SSL加密端口，163邮箱为465）
SMTP_PORT = 465
```

## 注意事项
- 请勿将包含授权码的脚本提交到公开代码仓库
- 发送频率请遵循对应邮箱服务商的限制，避免被判定为垃圾邮件
- 发送垃圾邮件、违法违规内容后果自负

---

# claw-email-skill (English)
OpenClaw skill for sending emails via 163 SMTP service, supports custom recipient, subject, content, both CLI and Python import calling methods are supported.

## Features
- ✅ Support plain text email sending
- ✅ One-click call via command line
- ✅ Support import as Python module
- ✅ Automatic SSL encrypted transmission, safe and reliable
- ✅ Compatible with all email services supporting SMTP protocol (default configuration for 163 email, can be modified for other email providers)

## Dependencies
- Python 3.6+
- No third-party dependencies, uses standard library smtplib and email modules

## Usage
### Method 1: Command Line Call
```bash
python3 send_email.py <recipient_email> <email_subject> <email_content>
```

#### Example
```bash
python3 send_email.py "example@example.com" "Test Email" "This is test email content"
```

### Method 2: Import as Python Module
```python
from send_email import send_mail

# Parameter description
# to: recipient email, separate multiple recipients with commas
# subject: email subject
# content: email content
send_mail(to="example@example.com", subject="Test Email", content="This is test content")
```

## Configuration
Before use, modify the email configuration in `send_email.py`:
```python
# Sender email configuration
SENDER = "{{your_sender_email_address}}"
# Email SMTP authorization code (for 163 email, get it in Settings → POP3/SMTP/IMAP)
AUTH_CODE = "{{your_email_SMTP_authorization_code}}"
# SMTP server address (smtp.163.com for 163 email, modify to corresponding address for other providers)
SMTP_SERVER = "smtp.163.com"
# SMTP port (SSL encrypted port, 465 for 163 email)
SMTP_PORT = 465
```

## Notes
- Do not submit scripts containing authorization codes to public code repositories
- Please follow the sending frequency limits of the corresponding email service provider to avoid being judged as spam
- You are responsible for the consequences of sending spam or illegal content
````
