Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Better startup error: missing MAILGUN_API_KEY now prints a full configuration guide with usage example and link to Mailgun dashboard
What This Skill Does
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.
When to use it
- 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
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: send an email to user@example.com with subject 'Report Ready' and body 'Your report is attached.'
- 1Read MAILGUN_API_KEY, MAILGUN_DOMAIN, MAILGUN_REGION, and MAILGUN_FROM from environment
- 2Initialize Mailgun client with the appropriate regional endpoint
- 3Construct the message object with to, subject, and text fields
- 4Call the Mailgun messages API to dispatch the email
Email delivered to user@example.com via Mailgun with a returned message ID
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.