mailgun-simple
Send outbound emails via the Mailgun API.
Setup & Installation
Install command
clawhub install lksrz/mailgun-simpleIf the CLI is not installed:
Install command
npx clawhub@latest install lksrz/mailgun-simpleOr install with OpenClaw CLI:
Install command
openclaw skills install lksrz/mailgun-simpleor paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/lksrz/mailgun-simpleWhat 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
View original SKILL.md file
# Mailgun Simple
Send outbound emails using the official Mailgun JS SDK.
## Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
| `MAILGUN_API_KEY` | **Yes** | — | Your private Mailgun API key. |
| `MAILGUN_DOMAIN` | **Yes** | `aicommander.dev` | Your verified sending domain. |
| `MAILGUN_REGION` | **Yes** | `EU` | API region: `EU` or `US`. |
| `MAILGUN_FROM` | No | `Postmaster <postmaster@{domain}>` | Default sender address. |
## Setup
```bash
npm install mailgun.js@12.7.0 form-data@4.0.1
```
## Tools
### Send Email
```bash
MAILGUN_API_KEY=xxx MAILGUN_DOMAIN=example.com MAILGUN_REGION=EU node scripts/send_email.js <to> <subject> <text> [from]
```
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Sending transactional emails from an agent workflow
- 1Sending transactional emails from an agent workflow
- 2Notifying users when a background job completes
- 3Dispatching password reset or confirmation emails
- 4Alerting a team when a monitored threshold is crossed
- 5Forwarding form submissions to an inbox
Send outbound emails via the Mailgun API.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.