Back to Plugins

Mailgun Notification Medusa

The Mailgun notification provider plugin for Medusa V2, enabling email delivery through Mailgun's robust email service.


Features

Requirements

Installation

Install using pnpm:

pnpm add @webbers/mailgun-notification-medusa

Configuration

Configure the plugin in your medusa-config.ts file:

Required Settings

Optional Settings

Template Configuration

Templates require two functions per email type:

  1. Subject Function: Generates localized email subjects
  2. HTML Function: Renders the email body content using React Email

Example Template Structure

{
  subject: (locale) => getLocalizedSubject(locale),
  html: (data) => <EmailTemplate {...data} />
}

EU Mailgun Accounts

If your Mailgun account is based in the EU, you need to configure a specific API URL in the plugin settings.

Email Types

The plugin supports various email notifications for:


Explore More Medusa Plugins

Find more powerful plugins and integrations to enhance your Medusa store. Browse our collection of community-driven solutions.

Free & Open Source
Community Driven
Easy Integration