360 Secure SkillHub
360 安全技能中心

Ravi email-send

基于 ravi 命令行发送电子邮件:撰写新邮件、回复、全部回复与转发,正文支持 HTML 标签,回复和转发会自动生成主题;描述提到附件,但未给出附件参数。文中给出每小时 60 封、每日 500 封的限流与 429 重试建议。

raunaksingwi
raunaksingwi
热度 59.99
最近更新 2026-05-11 17:27:36
分类:协作依赖:代码执行 / 第三方 API应用场景:邮件起草

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ravi-email-send
Metadata
name
ravi-email-send
description
Send, compose, reply, reply-all, or forward emails with HTML formatting and attachments. Do NOT use for reading incoming email (use ravi-inbox) or for credentials (use ravi-passwords or ravi-secrets).

Ravi Email — Send

Compose new emails, reply to existing ones, or forward them from your Ravi email address.

Writing quality matters. Before drafting email content, see the ravi-email-writing skill for subject lines, HTML formatting, tone, and anti-spam best practices.

Resolving Recipients by Name

If you have the recipient's name but not their email address (e.g. "email Alice"), use ravi-contacts first:

# Search contacts by name
ravi contacts search "Alice"
# → Returns matches with email, phone, display_name
# If one match → use the email from the result
# If multiple matches → confirm with the user which Alice they mean
# If no matches → ask the user for the email address directly

Compose a new email

ravi email compose --to "recipient@example.com" --subject "Subject" --body "<p>HTML content</p>"

Arguments:

  • --to (required): Recipient email address
  • --subject (required): Email subject line
  • --body (required): Email body (HTML supported — use tags like <p>, <h2>, <ul> for formatting)

Example with HTML formatting:

ravi email compose \
  --to "user@example.com" \
  --subject "Monthly Report" \
  --body "<h2>Monthly Report</h2><p>Key findings:</p><ul><li>Revenue up 15%</li><li>Churn down 3%</li></ul>"

Reply to an email

# Reply to sender only
ravi email reply <message_id> --body "<p>Reply content</p>"

# Reply to all recipients (reply-all)
ravi email reply-all <message_id> --body "<p>Reply content</p>"

Forward an email

ravi email forward <message_id> --to "recipient@example.com" --body "<p>FYI — see below.</p>"

Arguments:

  • --to (required): Recipient email address
  • --body (required): Email body (HTML supported)

Rate Limits

Email sending is rate-limited per user account:

  • 60 emails/hour and 500 emails/day

On hitting a rate limit, you'll get a 429 response with a retry_after_seconds value. Wait that many seconds before retrying.

Best practices for agents:

  • Avoid tight loops of email sends — batch work where possible
  • On 429: parse retry_after_seconds from the response body, wait, then retry
  • For bulk operations, add a 1-2 second delay between sends

Important Notes

  • HTML email bodies — the --body argument accepts HTML. Use tags for formatting: <p>, <h2>, <ul>, <a href="...">. No <html> or <body> wrapper needed. See ravi-email-writing for templates and anti-spam rules.
  • Subject for replies/forwards — reply and forward commands auto-derive the subject from the original message (prepending Re: or Fwd:). No need to pass --subject.

Full API Reference

For complete endpoint details, request/response schemas, and parameters: Messages | Attachments

Related Skills

  • ravi-contacts — Look up a person's email address by name before sending
  • ravi-email-writing — Subject lines, HTML templates, tone, and anti-spam best practices
  • ravi-inbox — Read incoming email before replying or forwarding
  • ravi-identity — Get your email address and identity name for signatures
  • ravi-feedback — Report deliverability issues or suggest email feature improvements