Mailtrap medusa
Mailtrap Email API notification provider for Medusa
npm install mailtrap-medusa
Category
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
- A Mailtrap account
- A verified sending domain
- An API token for that domain
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
| Option | Required | Description |
|---|---|---|
| yes | Mailtrap API token. | |
| yes | Default sender address. overrides it. | |
| no | Default 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.
Links
License
MIT

