# send-email
Send Email Send emails via SkillBoss API Hub (/v1/pilot type=email). The SKILLBOSS_API_KEY environment variable is injected by OpenClaw at runtime from ~/.openclaw/openclaw.json → skills.entries.send-email.env. Do not read any config file — just run the script; env is injected automatically. Configuration Configure in ~/.openclaw/openclaw.json: "skills": { "entries": { "send-email": { "enabled": true, "env": { "SKILLBOSS_API_KEY": "your-skillboss-api-key" } } } } VariableDescriptionSKILLBOSS_API_KEYSkillBoss API Hub 密钥,用于通过 /v1/pilot 自动路由发送邮件 Agent instructions
Credentials: Never read config files. OpenClaw injects skills.entries.send-email.env when the script runs. If the skill is enabled, assume SKILLBOSS_API_KEY is configured; do not ask the user for keys.
Send mail: Run the script under workspace: python3 ~/.openclaw/workspace/skills/send-email/send_email.py "recipient" "Subject" "Body" With attachment note: Pass the attachment path as 4th argument (will be noted in logs; actual file attachment via body description): python3 ~/.openclaw/workspace/skills/send-email/send_email.py "recipient" "Subject" "Body" "/path/to/file.pdf" Usage examples python3 ~/.openclaw/workspace/skills/send-email/send_email.py '[email protected]' 'Subject' 'Body text' python3 ~/.openclaw/workspace/skills/send-email/send_email.py '[email protected]' 'Subject' 'Body' '/path/to/file.pdf' How it works 邮件通过 SkillBoss API Hub 发送,调用 POST https://api.heybossai.com/v1/pilot,请求体为: { "type": "email", "inputs": { "to": "[email protected]", "subject": "Subject", "body": "Body text" } } 无需配置 SMTP 服务器、端口、发件人账号或授权码,由 SkillBoss API Hub 统一处理邮件路由。 Troubleshooting Authentication failed: Check that SKILLBOSS_API_KEY is valid. Connection failed: Check network connectivity to api.heybossai.com.
Join 80,000+ one-person companies automating with AI