跳到正文
TakoAPI
返回技能列表

mailgun-simple

由 lksrz 提供

Web & Frontend Development
507下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Send outbound emails via the Mailgun API.

描述

该技能的功能

Sends outbound emails through the Mailgun API using the official Mailgun JS SDK. Requires a verified sending domain and API key configured via environment variables.

Uses the official Mailgun SDK directly rather than generic SMTP, giving access to Mailgun-specific delivery tracking and EU/US region routing.

何时使用

  • Sending transactional emails from an agent workflow
  • Notifying users when a background job completes
  • Dispatching password reset or confirmation emails
  • Alerting a team when a monitored threshold is crossed
  • Forwarding form submissions to an inbox

示例工作流

输入

User asks: send an email to user@example.com with subject 'Report Ready' and body 'Your report is attached.'

智能体
  1. 1

    Read MAILGUN_API_KEY, MAILGUN_DOMAIN, MAILGUN_REGION, and MAILGUN_FROM from environment

  2. 2

    Initialize Mailgun client with the appropriate regional endpoint

  3. 3

    Construct the message object with to, subject, and text fields

  4. 4

    Call the Mailgun messages API to dispatch the email

输出

Email delivered to user@example.com via Mailgun with a returned message ID

前置要求

  • MAILGUN_API_KEY environment variable
  • MAILGUN_DOMAIN environment variable (verified sending domain in Mailgun)
  • MAILGUN_REGION environment variable (EU or US)
  • Mailgun account

安装

clawhub install lksrz/mailgun-simple

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接