360 Secure SkillHub
360 安全技能中心

Disposable Email

通过捆绑的 Python 脚本调用 Mail.tm 服务创建一次性邮箱,返回地址、密码与访问 token;支持列出邮件、读取最新邮件、按正则轮询等待并提取 OTP,也可端到端一次完成建箱与等待,并可将结果写入 JSON 文件。

fantaclaw-ai
fantaclaw-ai
热度 61.94
最近更新 2026-05-11 17:33:49
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / API 集成 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add disposable-email
Metadata
name
disposable-email
description
Create disposable Mail.tm inboxes and programmatically read incoming emails/OTP codes. Use when asked to generate a temporary email, poll inbox messages, extract OTPs, or automate email verification testing with Mail.tm.

Disposable Email

Create and read temporary Mail.tm inboxes for testing email flows.

Use bundled scripts

  • Create inbox + token:

    • python3 scripts/create_inbox.py
    • Returns JSON with address, password, token, accountId, domain.
  • List messages:

    • python3 scripts/read_inbox.py --token <TOKEN> --list
  • Read latest message:

    • python3 scripts/read_inbox.py --token <TOKEN> --latest
  • Wait for OTP from incoming mail:

    • python3 scripts/read_inbox.py --token <TOKEN> --wait-otp --timeout 120 --interval 3
    • Default OTP regex: \\b(\\d{4,8})\\b
    • Override regex with --otp-regex.
  • End-to-end (create inbox + wait for first message/OTP):

    • python3 scripts/e2e_otp.py --timeout 120 --interval 3
    • First line emits inbox_created JSON (address/password/token).
    • Then emits one of: otp_found, message_received_no_otp, or timeout.
    • Add --save ./otp-result.json to persist the latest emitted result to disk.

Workflow

  1. Run create_inbox.py and share the generated email address.
  2. Trigger email delivery to that address.
  3. Poll with read_inbox.py (--latest or --wait-otp).
  4. Return sender, subject, createdAt, and message text/OTP.

Notes

  • Free temp domains can be blocked by some production services.
  • Keep token private; treat it like mailbox access credentials.
  • Prefer stable paid inbox providers for CI if reliability is critical.