Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

mailgun-simple

bởi lksrz

Web & Frontend Development
507Lượt tải do clawskills.sh công bố
2Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Send outbound emails via the Mailgun API.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Yêu cầu

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

Cài đặt

clawhub install lksrz/mailgun-simple

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết