跳至主要内容
小龙虾小龙虾AI
🤖

Custom Smtp Sender

A skill to send emails with support for markdown, HTML text, and attachments, leveraging existing SMTP configuration in `/home/bb/.openclaw/smtp-config.json`. Includes retry logic and logging.

下载1.2k
星标0
版本1.0.0
通讯协作
安全通过

技能说明


name: custom-smtp-sender description: A skill to send emails with support for markdown, HTML text, and attachments, leveraging existing SMTP configuration in /home/bb/.openclaw/smtp-config.json. Includes retry logic and logging.

Custom SMTP Sender

Custom skill to send emails with advanced options including HTML/Markdown conversion, attachments, and retry handling. Integrates existing configuration, ensuring secure and reliable operations.

Features

  • HTML/Markdown support: Compose emails using markdown converted to HTML.
  • Attachments: Include one or more files easily.
  • Retries: Attempts to resend in case of temporary failures.
  • Logging: Maintains a log of sent emails and errors for auditing.

Prerequisites

  • SMTP Configuration File: smtp-config.json located at /home/bb/.openclaw/

Example:

{
  "server": "smtp.exmail.qq.com",
  "port": 465,
  "username": "your-email@example.com",
  "password": "your-password",
  "emailFrom": "your-email@example.com",
  "useTLS": true
}

Ensure file permissions are secured (chmod 600).

Usage

Send a basic email:

custom-smtp-sender send --to "recipient@example.com" --subject "Hello" --body "你好"

Send an HTML email with an attachment:

custom-smtp-sender send \
  --to "recipient@example.com" \
  --subject "Weekly Report" \
  --body "**Important updates inside.** See attached." \
  --html \
  --attachments path/to/file.pdf

Error Handling

The tool retries up to 3 times on failure, logging each attempt. Networking or credential issues are reported in detail.

Future Expansion

  • Support for CC/BCC fields
  • Scheduling emails (cron integration)
  • Email templates

Set up your SMTP-service once, and you’re ready to integrate email into your workflow!

如何使用「Custom Smtp Sender」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Custom Smtp Sender技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能