返回顶部
e

email

Email management and automation. Send, read, search, and organize emails across multiple providers.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
570
下载量
0
收藏
概述
安装方式
版本历史

email

# Email 📧 Email management and automation with attachment support. ## Features - Send emails with attachments - Support for multiple email providers (Gmail, Outlook, Yahoo, etc.) - HTML and plain text email support - CC and BCC recipients - Test email functionality - Secure TLS/SSL connections ## Setup Instructions ### 1. Configure Email Credentials Create a configuration file `email_config.json` in your workspace: ```json { "smtp_server": "smtp.gmail.com", "smtp_port": 587, "username": "your-email@gmail.com", "password": "your-app-password", "sender_name": "OpenClaw Assistant", "use_tls": true, "use_ssl": false } ``` ### 2. For Gmail Users (Recommended) 1. Enable 2-factor authentication on your Google account 2. Generate an App Password: - Go to https://myaccount.google.com/security - Under "Signing in to Google," select "App passwords" - Generate a new app password for "Mail" - Use this 16-character password in your config ### 3. Alternative: Environment Variables Set these environment variables instead of using a config file: ```bash # Windows set SMTP_SERVER=smtp.gmail.com set SMTP_PORT=587 set EMAIL_USERNAME=your-email@gmail.com set EMAIL_PASSWORD=your-app-password set EMAIL_SENDER_NAME="OpenClaw Assistant" # macOS/Linux export SMTP_SERVER=smtp.gmail.com export SMTP_PORT=587 export EMAIL_USERNAME=your-email@gmail.com export EMAIL_PASSWORD=your-app-password export EMAIL_SENDER_NAME="OpenClaw Assistant" ``` ## Usage Examples ### Send a Simple Email ```bash python email_sender.py --to "recipient@example.com" --subject "Hello" --body "This is a test email" ``` ### Send Email with Attachment ```bash python email_sender.py --to "recipient@example.com" --subject "Report" --body "Please find attached" --attachment "report.pdf" --attachment "data.xlsx" ``` ### Send Test Email ```bash python email_sender.py --to "your-email@gmail.com" --test ``` ### Using with OpenClaw Commands ``` "Send email to recipient@example.com with subject Meeting Notes and body Here are the notes from today's meeting" "Send test email to verify configuration" "Email the report.pdf file to team@company.com" ``` ## Supported Email Providers | Provider | SMTP Server | Port | TLS | |----------|-------------|------|-----| | Gmail | smtp.gmail.com | 587 | Yes | | Outlook/Office365 | smtp.office365.com | 587 | Yes | | Yahoo | smtp.mail.yahoo.com | 587 | Yes | | QQ Mail | smtp.qq.com | 587 | Yes | | Custom SMTP | your.smtp.server.com | 587/465 | As configured | ## Python API Usage ```python from email_sender import EmailSender # Initialize with config file sender = EmailSender("email_config.json") # Send email with attachment result = sender.send_email( to_email="recipient@example.com", subject="Important Document", body="Please review the attached document.", attachments=["document.pdf", "data.csv"] ) if result["success"]: print(f"Email sent with {result['attachments']} attachments") else: print(f"Error: {result['error']}") ``` ## Troubleshooting ### Common Issues: 1. **Authentication Failed** - Verify your username and password - For Gmail: Use app password instead of regular password - Check if 2FA is enabled 2. **Connection Refused** - Verify SMTP server and port - Check firewall settings - Try different port (465 for SSL) 3. **Attachment Too Large** - Most providers limit attachments to 25MB - Consider compressing files or using cloud storage links ## Security Notes - Never commit email credentials to version control - Use environment variables for production deployments - Regularly rotate app passwords - Consider using dedicated email accounts for automation

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 email-skill-1775946093 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 email-skill-1775946093 技能

通过命令行安装

skillhub install email-skill-1775946093

下载 Zip 包

⬇ 下载 email v0.1.0

文件大小: 10.16 KB | 发布时间: 2026-4-12 09:50

v0.1.0 最新 2026-4-12 09:50
Initial release of the email skill for management and automation.

- Send emails with attachments across multiple providers (Gmail, Outlook, Yahoo, QQ Mail, and custom SMTP)
- Supports HTML/Plain text, CC, BCC, and secure TLS/SSL connections
- Configurable via JSON file or environment variables
- Python API and command-line usage included
- Troubleshooting and security best practices documented

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部