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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/xiwan/smtp-sendWhat 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
- "Send an email to [email protected] with the subject 'Project Update' and attach the file 'report.pdf'."
- "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."
- "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_configfile 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-xiwan-smtp-send": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, external-api
Related Skills
Agent Linguo
Skill by xiwan
a2a-lite
Agent-to-Agent 轻量通信协议。仿 Google A2A 设计,但适配 Clawdbot/OpenClaw 生态。用于:(1) Agent 能力发现 (2) 跨 agent 任务协作 (3) 结构化的 agent 间消息交换。触发词:a2a、agent协议、agent通信、agent card、能力发现。
cross-agent-collab
跨 Agent 协作指南。与其他 AI Agent(如 mexico)交流时的规范和注意事项。用于:多 agent 协作、跨系统通信、共享文件、联合任务。触发词:mexico、agent 协作、跨系统、一起做。
skill-security-audit
审计 skill 的安全风险。扫描凭据泄露、危险命令、网络外传、文件越界等问题。用于:(1) 安装新 skill 前的安全检查 (2) 定期审计现有 skills (3) 发布 skill 前的自检。触发词:skill 安全、审计、security audit、检查 skill。
content-distributor
多平台内容分发工具。用于在知乎、豆瓣、微博等中文平台发布内容。支持:(1) 发布帖子/文章 (2) 管理多平台账号 (3) 批量分发内容 (4) 追踪发布状态。触发词:发帖、发布、分发、知乎、豆瓣、微博、推广。