返回顶部
m

mailgun

Send emails via Mailgun API. Use when the user needs to send emails programmatically, such as newsletters, notifications, alerts, or automated reports. Requires MAILGUN_API_KEY and MAILGUN_DOMAIN environment variables to be configured.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.6
安全检测
已通过
1,994
下载量
1
收藏
概述
安装方式
版本历史

mailgun

# Mailgun Email Sender Send emails programmatically using Mailgun's HTTP API. ## Prerequisites Configure the following environment variables in `~/.zshrc` or `~/.bash_profile`: ```bash export MAILGUN_API_KEY="key-xxxxx" # Your Mailgun private API key export MAILGUN_DOMAIN="mg.yourdomain.com" # Your Mailgun domain export MAILGUN_FROM="Sender <noreply@mg.yourdomain.com>" # Default sender export MAILGUN_DEFAULT_TO="you@email.com" # Default recipient (optional) ``` Then reload your shell configuration: ```bash source ~/.zshrc ``` ## Usage ### Send a simple email ```bash mailgun/scripts/send_email.sh "Subject" "Email body text" ``` ### Send to a specific recipient ```bash mailgun/scripts/send_email.sh "Newsletter" "Content here" "recipient@email.com" ``` ### Send with custom sender ```bash mailgun/scripts/send_email.sh "Alert" "System down" "admin@company.com" "alerts@company.com" ``` ## Features - Simple command-line interface - Uses environment variables for configuration - Supports custom sender and recipient - Returns success/error status codes - Works with HTML content (pass HTML in body parameter) ## Common Use Cases - Daily/weekly newsletters - System alerts and notifications - Automated reports - Confirmation emails - Scheduled reminders ## Troubleshooting **Error: MAILGUN_API_KEY and MAILGUN_DOMAIN must be set** → Configure environment variables as shown in Prerequisites **Error: 401 Unauthorized** → Check that your API key is correct and active **Error: 404 Not Found** → Verify your MAILGUN_DOMAIN is correct ## References - Mailgun Documentation: https://documentation.mailgun.com/ - API Reference: See [references/api.md](references/api.md)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mailgun-1776420071 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mailgun-1776420071 技能

通过命令行安装

skillhub install mailgun-1776420071

下载 Zip 包

⬇ 下载 mailgun v1.0.6

文件大小: 3 KB | 发布时间: 2026-4-17 19:48

v1.0.6 最新 2026-4-17 19:48
- Added explicit listing of required environment variables in SKILL.md.
- Introduced homepage and repository URLs in skill metadata.
- No changes to functionality or code.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部