mailgun-setup
Skill1.4k starsChanged 5 months agoMITView on GitHub
Set up and send emails via a user-provided Mailgun account (BYO email provider)
- Reads credentials
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about vellum-ai/vellum-assistant
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → …”Bluesky · May 13, 2026 · 1 likes
- sudosubin/agents.nix“agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- awesome-selfhosted/awesome-selfhosted-data“Add Vellum”GitHub · Sep 15, 2026
- janhq/awesome-local-ai“Add Vellum personal AI assistant”GitHub · Sep 15, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub and Bluesky (14 times).
On GitHub · 13
- Oct 4, 2026agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Sep 15, 2026Add Vellum — awesome-selfhosted/awesome-selfhosted-data0 reactions · 3 comments
- Sep 15, 2026Add Vellum personal AI assistant — janhq/awesome-local-ai0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — mihaiwillberich/awesome-desktop-ai-assistants0 reactions
8 more on GitHub
- Sep 15, 2026Add Vellum personal AI assistant — punkpeye/awesome-mcp-clients0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — elyase/awesome-personal-ai-assistants0 reactions
- Sep 14, 2026Add Vellum to alternatives and comparison table — T31K/awesome-openclaw-alternatives0 reactions
- Aug 26, 2026feat: send a canned denial when the gateway refuses a sender — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: pick the iMessage provider from a dropdown — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: add Linq as a selectable iMessage provider — vellum-ai/imessage0 reactions
- Aug 14, 2026feat: engine settings, Lightpanda, and a plugin browser skill — vellum-ai/browser0 reactions
- Aug 2, 2026vellum-ai — Viktor6886/evaself0 reactions
On Bluesky · 1
- May 13, 2026🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → https://github.com/Arvincreator/project-golem vellum-assistant… — @githubfeed.bsky.social1 likes and repost
In this repository96 other files it gives its agents.
- AGENTS.mdAGENTS.md
- assistant/AGENTS.mdAGENTS.md
- cli/AGENTS.mdAGENTS.md
- clients/AGENTS.mdAGENTS.md
- gateway/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- assistant/CLAUDE.mdCLAUDE.md
- gateway/CLAUDE.mdCLAUDE.md
- skills/assistant-migration/references/claude.mdCLAUDE.md
- add-mcp-integrationSkill
- cli-testingSkill
- releaseSkill
- updateSkill
- vellum-boundary-guardSkill
- vellum-change-reviewSkill
- vellum-feature-flag-rolloutSkill
- vellum-migration-checklistSkill
- vellum-pr-readinessSkill
- vellum-skill-authoringSkill
- vellum-test-selectionSkill
- vellum-user-facing-copySkill
- amazonSkill
- api-mappingSkill
- assistant-migrationSkill
- chat-complex-documentsSkill
- chatgpt-importSkill
- cli-discoverSkill
- conversation-launcherSkill
- daily-briefingSkill
- deepgram-voiceSkill
- deploy-fullstack-vercelSkill
- discord-app-setupSkill
- doordashSkill
- elevenlabs-voiceSkill
- email-setupSkill
- fish-audioSkill
- frontend-designSkill
- geo-auditSkill
- geo-writingSkill
- gmailSkill
- gmail-triggerSkill
- google-calendarSkill
- guardian-verify-setupSkill
- headless-claude-codeSkill
- inbox-cleanupSkill
- inbox-managementSkill
- influencerSkill
- linear-app-setupSkill
- llm-cost-optimizerSkill
- llm-provider-setupSkill
- macos-automationSkill
- mcp-setupSkill
- meme-generatorSkill
- memory-corpus-ingestSkill
- notificationsSkill
- notionSkill
- oura-setupSkill
- ouraSkill
- outlook-calendarSkill
- outlookSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Before starting, check whether Mailgun is already configured:
- Very specific: line 30
If configured is true — Mailgun is already set up.
- Very specific: line 31
If configured is false — continue to Step 1.
- Distinctive: line 35
Run the store script to securely collect the API key:
- Distinctive: line 47
After storing the API key, automatically detect the user's domain — don't ask them for it.
- Very specific: line 56
Use hi@<domain> as the default sender address.
- Distinctive: line 64
If the user also wants to receive emails via Mailgun, run the webhook setup script:
- Very specific: line 76
If the script fails because no public base URL is configured (self-hosted only), load the public-ingress skill to walk the user through …
- Very specific: line 88
Default sender: hi@<domain>"
- Very specific: line 92
If webhook was set up: ✅ Inbound route and webhook signing key configured
- Very specific: line 97
Use bash with curl to call the Mailgun API.
- Distinctive: line 154
Ask the user which region their account uses if sends fail with 401.
- Very specific: line 159
Default sender address is hi@<domain> — use this unless the user specifies otherwise.
- Distinctive: line 160
Always confirm with the user before sending — never send without explicit permission.
- Very specific: line 161
Use text for plain text, html for rich formatting.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Send emails through the user's own Mailgun account. The user provides their Mailgun API key and domain, and you send via their infrastructure.
Setup
Step 0: Check Existing Configuration
Before starting, check whether Mailgun is already configured:
bun skills/mailgun-setup/scripts/check-config.tsThe script outputs JSON: { "configured": boolean, "hasApiKey": boolean, "hasWebhookKey": boolean, "details": string }.
- If
configuredistrue— Mailgun is already set up. Offer to verify the connection or reconfigure. - If
configuredisfalse— continue to Step 1.
Step 1: Store the API Key
Run the store script to securely collect the API key:
bun skills/mailgun-setup/scripts/store-api-key.tsThe script opens a secure credential prompt, stores the key, and exits. If it exits 0, the key is stored. Exit code 130 means the user cancelled the prompt — nothing was stored; that's a valid choice, not an error, so ask whether they'd like to try again rather than treating it as a failure. Any other non-zero exit is a real failure. Never ask for the key in chat.
Note: Mailgun uses HTTP Basic Auth with username api and the API key as the password. The credential proxy cannot construct Basic Auth headers automatically. Instead, use curl -u "api:$KEY" in bash commands — retrieve the key from the vault at runtime. See the sending examples below.
Step 2: Detect the Domain
After storing the API key, automatically detect the user's domain — don't ask them for it. Retrieve the API key from the vault and call the Mailgun Domains API:
curl -s --user "api:$MAILGUN_API_KEY" \
https://api.mailgun.net/v4/domains?state=activeThe response contains an items array of domain objects with name and state fields. Pick the first domain with "state": "active". If no active domains are found, try the EU endpoint (https://api.eu.mailgun.net/v4/domains?state=active). If still none, tell the user they need to verify a domain in their Mailgun dashboard first.
Use hi@<domain> as the default sender address. Remember the domain and region (US/EU) for future sends.
Step 3: Verify the Connection
Confirm the API key works by checking the domain response returned in Step 2. A successful response (HTTP 200) with domain data confirms the connection.
Step 4: Webhook Setup (for receiving email)
If the user also wants to receive emails via Mailgun, run the webhook setup script:
bun skills/mailgun-setup/scripts/setup-webhook.ts --domain "<verified domain>" [--region eu]This script:
- Registers a callback URL via the webhooks system
- Creates an inbound route in Mailgun via their API
- Prompts the user for their webhook signing key (found in the Mailgun dashboard: Settings > API Security > HTTP Webhook Signing Key)
If the script fails because no public base URL is configured (self-hosted only), load the public-ingress skill to walk the user through setting one up, then retry.
Step 5: Report Success
Summarize with the completed checklist:
"Setup complete!
✅ API key configured
✅ Domain detected: <domain> (region: US/EU)
✅ Connection verified
{webhook_line}
Default sender: hi@<domain>"
For {webhook_line}:
- If webhook was set up:
✅ Inbound route and webhook signing key configured - If skipped:
⬜ Webhook — run setup again to enable inbound email
Sending Email
Use bash with curl to call the Mailgun API. Pass the API key via -u for Basic Auth:
curl -s --user "api:$MAILGUN_API_KEY" \
https://api.mailgun.net/v3/DOMAIN/messages \
-F from="Name <sender@example.com>" \
-F to="recipient@example.com" \
-F subject="Hello" \
-F text="Plain text body" \
-F html="<p>HTML body</p>"Replace DOMAIN with the user's Mailgun sending domain.
API Parameters
| Parameter | Type | Required | Description |
from | string | ✅ | Sender address ("Name <email>" format) |
to | string | ✅ | Recipient(s), comma-separated for multiple |
subject | string | ✅ | Email subject |
text | string | Plain text body | |
html | string | HTML body | |
cc | string | CC recipients, comma-separated | |
bcc | string | BCC recipients, comma-separated | |
h:Reply-To | string | Reply-to address | |
h:In-Reply-To | string | Message-ID of parent (for threading) | |
h:References | string | Space-separated chain of ancestor Message-IDs |
Threading (replies)
To reply in a thread, include custom headers:
curl -s --user "api:$MAILGUN_API_KEY" \
https://api.mailgun.net/v3/DOMAIN/messages \
-F from="bot@example.com" \
-F to="user@example.com" \
-F subject="Re: Original subject" \
-F text="Reply body" \
-F "h:In-Reply-To=<original-message-id>" \
-F "h:References=<original-message-id>"Response
Success returns { "id": "<message-id>", "message": "Queued. Thank you." } with HTTP 200.
Errors return { "message": "error description" } with 4xx/5xx status.
Regions
Mailgun has US and EU regions:
- US (default):
https://api.mailgun.net/v3/DOMAIN/messages - EU:
https://api.eu.mailgun.net/v3/DOMAIN/messages
Ask the user which region their account uses if sends fail with 401.
Important Notes
- The
fromaddress must be from the user's verified Mailgun domain. - Default sender address is
hi@<domain>— use this unless the user specifies otherwise. - Always confirm with the user before sending — never send without explicit permission.
- Use
textfor plain text,htmlfor rich formatting. Provide both when possible. - Mailgun's free tier allows 100 emails/day. Paid plans have higher limits.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

