mailgun-simple_skill

This skill sends outbound emails via the Mailgun API using environment-driven configuration for secure, reliable usage across US or EU regions.
  • Python

2.5k

GitHub Stars

3

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill mailgun-simple

  • _meta.json633 B
  • package.json23 B
  • SKILL.md1.1 KB

Overview

This skill sends outbound emails via the Mailgun API with a minimal, environment-driven interface. It supports both EU and US Mailgun regions and provides a simple command-line entrypoint for sending plain-text messages. The implementation prioritizes security by relying on caller-provided environment variables and not loading external .env files.

How this skill works

The skill reads required configuration from environment variables (API key, domain, region, optional default sender) and uses the official Mailgun SDK to construct and send plain-text messages. A small script accepts recipient, subject, body, and optional from address, then calls Mailgun’s messages API. Region selection (EU vs US) is configured at runtime to route requests to the appropriate Mailgun endpoint.

When to use it

  • Send transactional or notification emails from lightweight services or scripts.
  • Integrate outbound email capability into serverless functions or CI jobs without embedding credentials in code.
  • Quickly test or troubleshoot email templates and delivery using a simple CLI.
  • Route traffic to EU or US endpoints to meet data residency requirements.
  • Replace ad-hoc SMTP setups with a managed API for better deliverability.

Best practices

  • Always provide MAILGUN_API_KEY and use secure secret storage (environment variables, secret manager).
  • Set MAILGUN_DOMAIN to a verified sending domain to avoid delivery failures.
  • Choose MAILGUN_REGION based on data residency and routing needs (EU or US).
  • Supply MAILGUN_FROM or pass an explicit from address on the command line to ensure correct sender headers.
  • Monitor delivery and suppression lists from Mailgun dashboard; handle API errors and rate limiting in callers.

Example use cases

  • Send password reset or welcome emails from a microservice triggered by events.
  • Run a cron job that notifies admins of system alerts via Mailgun email.
  • Embed simple CLI email sending into deployment scripts for release notifications.
  • Test delivery and domain configuration by sending verification messages to QA inboxes.
  • Use in serverless handlers where a tiny, environment-driven email client is required.

FAQ

MAILGUN_API_KEY is required. MAILGUN_DOMAIN defaults to aicommander.dev if not set; MAILGUN_REGION defaults to EU. MAILGUN_FROM is optional.

How do I choose the region?

Set MAILGUN_REGION to EU or US depending on where you need the Mailgun API endpoint and data residency. The skill routes requests accordingly.

Does this skill load .env files?

No. The implementation deliberately avoids loading external .env files and depends solely on environment variables provided by the caller.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational