ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified communication Safety 4/5

smtp-send

Send emails via SMTP or Resend API with support for plain text, HTML, and attachments. Use when the user asks to send an email, email someone, or compose and send a message. Supports single recipients and can include file attachments. Works with Gmail, Outlook, Yahoo, QQ Mail, 163 Mail, Resend, and any SMTP server.

Why use this skill?

Easily send emails via SMTP or Resend API with OpenClaw. Support for HTML, attachments, and automated fallbacks for reliable messaging workflows.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/xiwan/smtp-send
Or

What This Skill Does

The smtp-send skill provides a robust and flexible interface for OpenClaw agents to send emails directly from the command line or through automation scripts. Whether you need to deliver simple text notifications, formatted HTML reports, or complex document batches with file attachments, this skill handles the heavy lifting. It supports dual-backend architecture, allowing you to choose between the high-performance Resend API or traditional SMTP servers like Gmail, Outlook, QQ, or 163 Mail. The skill is designed with a intelligent 'auto' provider mode that prioritizes modern API integration while maintaining a fallback mechanism to SMTP, ensuring your critical communications are delivered even if one service encounters an outage.

Installation

To integrate this email capability into your environment, use the OpenClaw management utility. Execute the following command in your terminal:

clawhub install openclaw/skills/skills/xiwan/smtp-send

Once installed, create a configuration file at ~/.smtp_config. You can populate this file with your Resend API credentials, your SMTP server details, or both. For security, execute chmod 600 ~/.smtp_config to ensure that only your user account can read the sensitive credentials stored within.

Use Cases

  • Automated Reporting: Have your agent generate a data analysis file and immediately email the summary to your stakeholders.
  • System Alerts: Configure background scripts to notify you via email when a long-running process finishes or encounters an error.
  • Communication Delegation: Use the agent to draft and send follow-up emails after meetings, using HTML templates to maintain brand consistency.
  • Bulk Distribution: Simplify the process of sending personalized documents or reports by automating the attachment selection and distribution workflow.

Example Prompts

  1. "Send an email to [email protected] with the subject 'Project Update' and attach the file 'report.pdf'."
  2. "Could you send a message to [email protected] informing them about the deployment delay? Use an HTML format to list the specific issues in a table."
  3. "Email the current log files to my support address using my configured SMTP account."

Tips & Limitations

  • Authentication: When using traditional providers like Gmail, 163, or QQ, ensure you generate an 'App Password' or 'Authorization Code' instead of using your primary login password.
  • Security: Never commit your ~/.smtp_config file to public version control systems. The file permissions should strictly remain 600.
  • Resend Restrictions: If you are on a free Resend plan, you are restricted to sending emails only to your verified recipient email address until you verify your custom domain.
  • Fallback: If you configure both providers, the system defaults to Resend first. If the API key is missing or the request fails, it seamlessly switches to the SMTP configuration defined in your settings.

Metadata

Author@xiwan
Stars879
Views3
Updated2026-02-11
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-xiwan-smtp-send": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#email#smtp#automation#communication#messaging
Safety Score: 4/5

Flags: network-access, file-read, external-api