Integration Module 2.0 for Medusa is outRead the announcement
Mailtrap medusa logo

Mailtrap medusa

Mailtrap Email API notification provider for Medusa

npm install mailtrap-medusa
Built by
Service
Version
0.1.1
Last updated
2 weeks ago
Monthly downloads
Loading downloads

mailtrap-medusa

Mailtrap Email API notification provider for Medusa. Requires Medusa 2.22 or a newer 2.x release.

Prerequisites

Install

Configure

Add the provider to the Notification Module in :

And set the environment variables in :

must be an address on your verified domain. Only one provider can handle a channel, so remove from the channel if it is configured.

Options

OptionRequiredDescription
yesMailtrap API token.
yesDefault sender address. overrides it.
noDefault category for emails sent with (not used for template emails).

Sending

With a Mailtrap template: is the template UUID and holds the template variables.

Or inline, with :

  • : category of the email, up to 255 characters. Shown in Mailtrap Email Logs and Stats. Ignored for template emails, which carry their own category.
  • : map of string values, up to 1000 bytes in total. Shown in Mailtrap Email Logs.

Errors

A failed send throws and the notification is marked as failed.

License

MIT