๐ŸŽ Get the FREE AI Skills Starter Guide โ€” Subscribe โ†’
BytesAgainBytesAgain
๐Ÿฆ€ ClawHub

China Telecom Mail

by @williamwang-wh

Send and receive emails via China Telecom (POP3:995, SMTP:465). Lists today's emails, reads content, forwards emails, and sends new emails.

Versionv1.0.0
Downloads314
Installs3
TERMINAL
clawhub install china-telecom-mail

๐Ÿ“– About This Skill


name: china-telecom-mail description: "Send and receive emails via China Telecom (POP3:995, SMTP:465). Lists today's emails, reads content, forwards emails, and sends new emails." metadata: { "openclaw": { "emoji": "๐Ÿ“ง", "requires": { "bins": ["uv", "python"] }, "install": [], }, }

China Telecom Mail Skill

Send and receive emails via China Telecom (pop.chinatelecom.cn:995, smtp.chinatelecom.cn:465).

Installation

Copy the china-telecom-mail folder to your OpenClaw skills directory:

# On Linux/macOS
cp -r china-telecom-mail ~/.openclaw/skills/

On Windows

Copy to C:\Users\\.openclaw\skills\china-telecom-mail

Configuration

Edit ~/.openclaw/skills/china-telecom-mail/config.toml:

[email]

POP3 server (for receiving)

server = "pop.chinatelecom.cn" port = 995 username = "your_email@chinatelecom.cn" password = "your_password"

[smtp]

SMTP server (for sending)

server = "smtp.chinatelecom.cn" port = 465

Usage

Receive Emails

List today's emails:

openclaw run --skill china-telecom-mail list-today

Read a specific email:

openclaw run --skill china-telecom-mail read 21

JSON output:

openclaw run --skill china-telecom-mail json-summary

Count today's emails:

openclaw run --skill china-telecom-mail count

Send Emails

Send a simple email:

openclaw run --skill china-telecom-mail send \
  --to "recipient@example.com" \
  --subject "ไผš่ฎฎ้€š็Ÿฅ" \
  --body "่ฏทๅ‚ๅŠ ๆ˜Žๅคฉไธ‹ๅˆ3็‚น็š„ไผš่ฎฎใ€‚"

Send with attachment:

openclaw run --skill china-telecom-mail send \
  --to "recipient@example.com" \
  --subject "ๆŠฅๅ‘Š" \
  --body "่ฏทๆŸฅๆ”ถ้™„ไปถ" \
  --attachment "/path/to/report.pdf"

Forward Emails

Forward an email:

openclaw run --skill china-telecom-mail forward \
  --email-id 21 \
  --to "recipient@example.com"

Interactive Mode

uv run python ~/.openclaw/skills/china-telecom-mail/main.py interactive

Direct Python Usage

# List today's emails
uv run python ~/.openclaw/skills/china-telecom-mail/main.py list-today

Read email

uv run python ~/.openclaw/skills/china-telecom-mail/main.py read 21

Send email

uv run python ~/.openclaw/skills/china-telecom-mail/main.py send \ --to "test@example.com" \ --subject "Test" \ --body "Hello"

Forward email

uv run python ~/.openclaw/skills/china-telecom-mail/main.py forward \ --email-id 21 \ --to "recipient@example.com"

Directory Structure

china-telecom-mail/
โ”œโ”€โ”€ SKILL.md          # OpenClaw skill metadata
โ”œโ”€โ”€ main.py           # Main program (receive + send)
โ”œโ”€โ”€ config.toml       # Configuration file
โ”œโ”€โ”€ README.md         # This file
โ””โ”€โ”€ config.toml.example  # Config template

Features

Receive

  • โœ… List today's emails with previews
  • โœ… Read full email content
  • โœ… JSON output for automation
  • โœ… Automatic Chinese encoding detection
  • Send

  • โœ… Send plain text emails
  • โœ… Send emails with attachments
  • โœ… Forward received emails
  • โœ… Interactive mode
  • Tips

  • Use list-today to see all today's emails
  • Email IDs are 1-based (first email is ID 1)
  • Use forward to forward received emails
  • Use send to send new emails
  • Supports both text and HTML email bodies
  • ๐Ÿ’ก Examples

    Receive Emails

    List today's emails:

    openclaw run --skill china-telecom-mail list-today
    

    Read a specific email:

    openclaw run --skill china-telecom-mail read 21
    

    JSON output:

    openclaw run --skill china-telecom-mail json-summary
    

    Count today's emails:

    openclaw run --skill china-telecom-mail count
    

    Send Emails

    Send a simple email:

    openclaw run --skill china-telecom-mail send \
      --to "recipient@example.com" \
      --subject "ไผš่ฎฎ้€š็Ÿฅ" \
      --body "่ฏทๅ‚ๅŠ ๆ˜Žๅคฉไธ‹ๅˆ3็‚น็š„ไผš่ฎฎใ€‚"
    

    Send with attachment:

    openclaw run --skill china-telecom-mail send \
      --to "recipient@example.com" \
      --subject "ๆŠฅๅ‘Š" \
      --body "่ฏทๆŸฅๆ”ถ้™„ไปถ" \
      --attachment "/path/to/report.pdf"
    

    Forward Emails

    Forward an email:

    openclaw run --skill china-telecom-mail forward \
      --email-id 21 \
      --to "recipient@example.com"
    

    Interactive Mode

    uv run python ~/.openclaw/skills/china-telecom-mail/main.py interactive
    

    โš™๏ธ Configuration

    Edit ~/.openclaw/skills/china-telecom-mail/config.toml:

    [email]
    

    POP3 server (for receiving)

    server = "pop.chinatelecom.cn" port = 995 username = "your_email@chinatelecom.cn" password = "your_password"

    [smtp]

    SMTP server (for sending)

    server = "smtp.chinatelecom.cn" port = 465

    ๐Ÿ“‹ Tips & Best Practices

  • Use list-today to see all today's emails
  • Email IDs are 1-based (first email is ID 1)
  • Use forward to forward received emails
  • Use send to send new emails
  • Supports both text and HTML email bodies