sinch-email-mailgun-send

Send transactional emails via the Mailgun API using HTTP Basic Auth.

6|2|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/sinch/sinch-plugins --skill sinch-email-mailgun-send-sinch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sinch-email-mailgun-send
Source: https://github.com/sinch/sinch-plugins/tree/main/plugins/sinch-antigravity-plugin/skills/sinch-email-mailgun-send
Command: npx skills add https://github.com/sinch/sinch-plugins --skill sinch-email-mailgun-send-sinch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Sending transactional email programmatically requires constructing authenticated HTTP requests against the Mailgun API with correct regional endpoints and credentials. This Skill performs the API call directly so you can send an email without writing any code or scripts. ## Core Features & Use Cases - Direct API Execution: Sends email immediately via POST to the Mailgun v3 messages endpoint, with no script generation. - Regional Support: Targets either the US endpoint (api.mailgun.net) or the EU endpoint (api.eu.mailgun.net) based on MAILGUN_REGION. - Flexible Content: Accepts plain text, HTML, or both body formats, plus sender, recipient, and subject arguments. - Use Case: You need to send a password reset or order confirmation email from your verified domain. Provide the from, to, subject, and body, and the Skill authenticates with your API key and delivers the message, returning the message ID. ## Quick Start Ask the assistant to send an email from [email protected] to [email protected] with a subject and text or HTML body using the Mailgun skill.

Frequently Asked Questions about sinch-email-mailgun-send

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send an email with the Mailgun API?

Provide the from, to, subject, and a text or HTML body. The Skill POSTs to https://api.mailgun.net/v3/{domain}/messages using Basic Auth with username "api" and your API key as the password, then returns the message ID on success.

What environment variables does Mailgun sending require?

You must set MAILGUN_API_KEY and MAILGUN_DOMAIN. MAILGUN_REGION is optional and selects the base URL: "us" for api.mailgun.net or "eu" for api.eu.mailgun.net. The sending domain must be verified in Mailgun.

Does Mailgun support EU region endpoints?

Yes. Set MAILGUN_REGION to "eu" and the Skill uses https://api.eu.mailgun.net/v3/{domain}/messages instead of the US endpoint. The authentication method and request payload remain identical across regions.

Why does Mailgun return a 401 error when sending email?

A 401 response means authentication failed, typically because MAILGUN_API_KEY is missing or incorrect. Verify the key is set in your environment and matches the key for your Mailgun account and domain.

Can I send both HTML and plain text email bodies?

Yes. You can pass --text, --html, or both in the same request. At least one body format is required; when both are provided, Mailgun delivers a multipart message so clients can render the appropriate version.