← 返回
沟通协作 Key 中文

mailgun sender

Send emails via Mailgun API. Use when the user needs to send emails programmatically, such as newsletters, notifications, alerts, or automated reports. Requi...
通过 Mailgun API 发送邮件。适用于用户需要以编程方式发送邮件的场景,例如新闻通讯、通知、警报或自动化报告。
alphafactor
沟通协作 clawhub v1.0.6 2 版本 100000 Key: 需要
★ 1
Stars
📥 2,470
下载
💾 66
安装
2
版本
#latest#mailgun

概述

Mailgun Email Sender

Send emails programmatically using Mailgun's HTTP API.

Prerequisites

Configure the following environment variables in ~/.zshrc or ~/.bash_profile:

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:

source ~/.zshrc

Usage

Send a simple email

mailgun/scripts/send_email.sh "Subject" "Email body text"

Send to a specific recipient

mailgun/scripts/send_email.sh "Newsletter" "Content here" "recipient@email.com"

Send with custom sender

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

版本历史

共 2 个版本

  • v1.0.6 当前
    2026-03-28 13:59 安全 安全
  • v1.0.5
    2026-03-26 21:17

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tushare Pro

alphafactor
通过Tushare API获取中国股票和期货市场数据,支持股票行情、期货数据、公司基本面及宏观经济指标。适用于...
★ 25 📥 15,351
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,678
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,408