Zeptomail
Плагин ZeptoMail для Medusa
@take3labs/zeptomail
A Zoho ZeptoMail notification provider plugin for Medusa v2.
This plugin allows your Medusa application to send transactional emails via ZeptoMail using template-based dispatch (). It provides an in-code template store/mapping mechanism to decouple Medusa application events from ZeptoMail template IDs.
Features
- ZeptoMail Template Sending: Dispatches transactional emails via ZeptoMail's endpoint.
- Decoupled Template Store: Map Medusa notification events (e.g. , ) directly to ZeptoMail or .
- Flexible Credential Handling: Auto-normalizes authorization headers ( prefix) and regional endpoints (US, EU, IN, etc.).
- Attachment & Merge Info Support: Automatically formats Medusa notification data and attachments for ZeptoMail.
- Built for Medusa v2: Full support for Medusa v2 module providers and .
Prerequisites
- A Zoho ZeptoMail account.
- A configured Mail Agent with a verified sending domain.
- A Send Mail Token generated in your Agent settings under SMTP / API.
- Email Templates created in your Mail Agent with their respective Template Key (e.g. ) or Template Alias.
Installation
Install the plugin and its dependencies into your Medusa application:
Environment Variables
Add the following environment variables to your Medusa project's file:
Configuration
Register the provider in your Medusa application's :
Template Store & Decoupling
The option allows you to map Medusa internal notification templates to ZeptoMail templates.
You can configure values as:
- A Template Key (ZeptoMail's unique identifier):
- A Template Alias (Custom human-readable alias configured in ZeptoMail):
- An Explicit Object:
Predefined Constants
You can also import common Medusa notification template event names from :
Triggering Notifications
When sending notifications via Medusa's notification service or workflow step:
License
MIT

